mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-01-30 15:22:07 +00:00
lib/vmselectapi: fixes regression for disable compression setting (#3932)
after vmselect api refactoring it wasn't possible to disable response cache. This patch restores correct behavior for rpc.disableCompression flag
This commit is contained in:
parent
bec42ac975
commit
80213232cc
1 changed files with 4 additions and 3 deletions
|
@ -85,9 +85,10 @@ func NewServer(addr string, api API, limits Limits, disableResponseCompression b
|
|||
return nil, fmt.Errorf("unable to listen vmselectAddr %s: %w", addr, err)
|
||||
}
|
||||
s := &Server{
|
||||
api: api,
|
||||
limits: limits,
|
||||
ln: ln,
|
||||
api: api,
|
||||
limits: limits,
|
||||
disableResponseCompression: disableResponseCompression,
|
||||
ln: ln,
|
||||
|
||||
vmselectConns: metrics.NewCounter(fmt.Sprintf(`vm_vmselect_conns{addr=%q}`, addr)),
|
||||
vmselectConnErrors: metrics.NewCounter(fmt.Sprintf(`vm_vmselect_conn_errors_total{addr=%q}`, addr)),
|
||||
|
|
Loading…
Reference in a new issue