Skip to content

Commit

Permalink
Refactor EndpointSet (thanos-io#5538)
Browse files Browse the repository at this point in the history
* Refactor EndpointSet

This commit refactors the EndpointSet struct in order to make it easier
to understand and work with.

Signed-off-by: Filip Petkovski <[email protected]>

* Handle context cancellation in endpoint mock

Signed-off-by: Filip Petkovski <[email protected]>

* Make additions and removals of refs atomic.

Signed-off-by: Filip Petkovski <[email protected]>
  • Loading branch information
fpetkovski authored Jul 27, 2022
1 parent 15decfe commit fd275f8
Show file tree
Hide file tree
Showing 4 changed files with 692 additions and 255 deletions.
1 change: 1 addition & 0 deletions cmd/thanos/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,7 @@ func runQuery(

var (
endpoints = query.NewEndpointSet(
time.Now,
logger,
reg,
func() (specs []*query.GRPCEndpointSpec) {
Expand Down
Loading

0 comments on commit fd275f8

Please sign in to comment.