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

View File

@ -233,7 +233,7 @@ func (a *KeyInternalAPI) PerformMarkAsStaleIfNeeded(ctx context.Context, req *ap
return err return err
} }
if len(knownDevices) == 0 { 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 { for i := range knownDevices {