Skip to content

Commit b2ea947

Browse files
committed
Removed duplicate code
Signed-off-by: Alex Le <leqiyue@amazon.com>
1 parent 299592b commit b2ea947

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

pkg/storage/tsdb/bucketindex/loader.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,6 @@ func NewLoader(cfg LoaderConfig, bucketClient objstore.Bucket, cfgProvider bucke
9393
// GetIndex returns the bucket index for the given user. It returns the in-memory cached
9494
// index if available, or load it from the bucket otherwise.
9595
func (l *Loader) GetIndex(ctx context.Context, userID string) (*Index, Status, error) {
96-
if ctx.Err() != nil {
97-
level.Warn(util_log.WithContext(ctx, l.logger)).Log("msg", "received context error when attempting to load bucket index", "err", ctx.Err())
98-
return nil, UnknownStatus, ctx.Err()
99-
}
100-
10196
l.indexesMx.RLock()
10297
if entry := l.indexes[userID]; entry != nil {
10398
idx := entry.index

0 commit comments

Comments
 (0)