Skip to content

Commit

Permalink
proxy: fix bug
Browse files Browse the repository at this point in the history
Signed-off-by: Giedrius Statkevičius <[email protected]>
  • Loading branch information
GiedriusS committed May 11, 2022
1 parent 4e924d7 commit 7684ae9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/store/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,7 @@ func findMostMatchingKey(stores []Client, r *storepb.SeriesRequest, listeners *l
fmt.Fprintf(&sb, "%v", r.Aggregates)
}

fmt.Fprintf(&sb, "%v", r.QueryHints)
fmt.Fprintf(&sb, "%c", marker)

markers := 0
Expand All @@ -387,8 +388,6 @@ func findMostMatchingKey(stores []Client, r *storepb.SeriesRequest, listeners *l
fmt.Fprintf(&sb, "%s%c%s%c", m.Name, marker, m.Value, marker)
}

fmt.Fprintf(&sb, "%v", r.QueryHints)

_, ok := listeners.Get(sb.String())
// Easy path - direct match.
if ok {
Expand Down

0 comments on commit 7684ae9

Please sign in to comment.