Skip to content

Commit

Permalink
fix(sqp): Request metrics chunk in the default queryer
Browse files Browse the repository at this point in the history
When a client was created using svrquery.NewClient() then c.Query() was
executed only server info chunk was going to be requested by default.

This fix adds the metrics chunk to the requested chunks used in the
default queryer.

This was missed from the previous commit.
  • Loading branch information
milonoir committed Oct 18, 2022
1 parent 38dc672 commit 67026eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/svrquery/protocol/sqp/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type queryer struct {
}

func newCreator(c protocol.Client) protocol.Queryer {
return newQueryer(ServerInfo, DefaultMaxPacketSize, c)
return newQueryer(ServerInfo|Metrics, DefaultMaxPacketSize, c)
}

func newQueryer(requestedChunks byte, maxPktSize int, c protocol.Client) *queryer {
Expand Down

0 comments on commit 67026eb

Please sign in to comment.