Skip to content

Commit

Permalink
fix CLI flags not pass into the receive handler
Browse files Browse the repository at this point in the history
Signed-off-by: Yi Jin <[email protected]>
  • Loading branch information
jnyi committed Apr 11, 2024
1 parent 96fca41 commit 4f3e160
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/thanos/receive.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,8 @@ func runReceive(
MaxBackoff: time.Duration(*conf.maxBackoff),
TSDBStats: dbs,
Limiter: limiter,

AsyncForwardWorkerCount: conf.asyncForwardWorkerCount,
})

grpcProbe := prober.NewGRPC()
Expand Down
1 change: 1 addition & 0 deletions pkg/receive/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ func NewHandler(logger log.Logger, o *Options) *Handler {
if workers == 0 {
workers = 1
}
level.Info(logger).Log("msg", "Starting receive handler with async forward workers", "workers", workers)

h := &Handler{
logger: logger,
Expand Down

0 comments on commit 4f3e160

Please sign in to comment.