diff --git a/satellite/metainfo/loop.go b/satellite/metainfo/loop.go index d6911d4ee..4b64b4284 100644 --- a/satellite/metainfo/loop.go +++ b/satellite/metainfo/loop.go @@ -242,7 +242,8 @@ func iterateDatabase(ctx context.Context, db PointerDB, observers []*observerCon if err := rateLimiter.Wait(ctx); err != nil { // We don't really execute concurrent batches so we should never // exceed the burst size of 1 and this should never happen. - return LoopError.New("unexpected error rate limiting metainfo loop %s", err) + // We can also enter here if the context is cancelled. + return LoopError.Wrap(err) } rawPath := item.Key.String()