chore(model): remove GUI/log warning on sequence anomaly (#9738)

I can see already in our Sentry data that there are a fair amount of
these warnings, and mostly the shape of it. Asking users to report them
will likely cause a lot of reporting effort to fairly little additional
value. We can do that when/if we have something more targeted to ask
for.
This commit is contained in:
Jakob Borg 2024-09-28 16:38:07 +02:00 committed by GitHub
parent 77942747db
commit 31874f3ebb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -448,13 +448,7 @@ func (s *indexHandler) receive(fs []protocol.FileInfo, update bool, op string, p
return nil
}
var warnSequenceAnomalyOnce sync.Once
func (s *indexHandler) logSequenceAnomaly(msg string, extra map[string]any) {
warnSequenceAnomalyOnce.Do(func() {
l.Warnf("Index sequence anomaly detected (please report at https://forum.syncthing.net/t/22660): %s (%v)", msg, extra)
})
extraStrs := make(map[string]string, len(extra))
for k, v := range extra {
extraStrs[k] = fmt.Sprint(v)