Skip to content

Commit

Permalink
pkg/store: Report no data if no stores discovered
Browse files Browse the repository at this point in the history
  • Loading branch information
brancz committed Mar 24, 2020
1 parent d89a497 commit c007e9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/store/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ func (s *ProxyStore) Info(ctx context.Context, r *storepb.InfoRequest) (*storepb
maxTime := int64(0)
stores := s.stores()

// Edge case: we have all of the data if there are no stores.
// Edge case: we have no data if there are no stores.
if len(stores) == 0 {
res.MaxTime = math.MaxInt64
res.MaxTime = 0
res.MinTime = 0

return res, nil
Expand Down

0 comments on commit c007e9b

Please sign in to comment.