4
0
mirror of https://github.com/1f349/dendrite.git synced 2025-03-31 17:25:05 +01:00

Stop CPU burn in PerformMarkAsStaleIfNeeded

This commit is contained in:
Neil Alexander 2022-10-03 12:59:56 +01:00
parent c1e16fd41e
commit fec3ee384b
No known key found for this signature in database
GPG Key ID: A02A2019A2BB0944

@ -233,7 +233,7 @@ func (a *KeyInternalAPI) PerformMarkAsStaleIfNeeded(ctx context.Context, req *ap
return err
}
if len(knownDevices) == 0 {
return fmt.Errorf("unknown user %s", req.UserID)
return nil // fmt.Errorf("unknown user %s", req.UserID)
}
for i := range knownDevices {