fix(search): drop the unused tripped flag of the unreachable extractions

This commit is contained in:
Alex Ababii committed 2026-12-02 15:14:10 +01:00
1 parent 38ccf9869a
commit 1ff61a5369
1 file changed
+5 -6
+5 -6
View File
@@ -1064,7 +1064,7 @@ func (s *Service) extract(ctx context.Context, info *provider.ResourceInfo, unre
unreachable.files++
unreachable.last = err
if unreachable.streak == unreachableStreakLimit {
unreachable.down, unreachable.tripped = true, true
unreachable.down = true
s.logger.Warn().Err(err).Int("files", unreachable.streak).Msg("tika or the files stay out of reach, the remaining files are indexed by name without retries until an extraction succeeds")
}
return doc, err
@@ -1207,11 +1207,10 @@ func tokenExpiry(ctx context.Context) (time.Time, error) {
// not reach tika or the file. The walk does not stop when tika is down: the
// files are indexed by name, and IndexSpace reports the outage at the end.
type unreachableExtractions struct {
streak int
down bool
tripped bool
files int
last error
streak int
down bool
files int
last error
}
// err reports the outage as soon as one file could not be extracted because