Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
hitanshu-mehta committed Aug 31, 2021
1 parent 8d0f0ff commit a99d374
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/query/endpointset.go
Expand Up @@ -635,9 +635,9 @@ func (er *endpointRef) Update(metadata *endpointMetadata) {
clients.store = storepb.NewStoreClient(er.cc)
er.StoreClient = clients.store
} else {
// When we see the endpoint for the first time we assume the StoreAPI is exposed by that endpoint (which may not be true for some ruler)
// When we see the endpoint for the first time we assume the StoreAPI is exposed by that endpoint (which may not be true for some component, e.g. ruler)
// and we create a store API client because as a fallback we might have to call info method of storeAPI.
// In this step,we are setting it to null when we find out that the store API is not exposed.
// In this step, we are setting it to null when we find out that the store API is not exposed.
er.clients.store = nil
er.StoreClient = nil
}
Expand Down

0 comments on commit a99d374

Please sign in to comment.