[#1636] shard: Change ops limiter on shard reload
Some checks failed
DCO action / DCO (pull_request) Successful in 43s
Tests and linters / Tests (pull_request) Failing after 58s
Vulncheck / Vulncheck (pull_request) Successful in 56s
Pre-commit hooks / Pre-commit (pull_request) Successful in 1m24s
Build / Build Components (pull_request) Successful in 1m28s
Tests and linters / Tests with -race (pull_request) Failing after 2m6s
Tests and linters / Run gofumpt (pull_request) Successful in 2m21s
Tests and linters / Lint (pull_request) Successful in 2m49s
Tests and linters / Staticcheck (pull_request) Successful in 2m44s
Tests and linters / gopls check (pull_request) Successful in 3m41s

Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
Dmitrii Stepanov 2025-02-24 16:06:07 +03:00
parent cef12da660
commit 3e319e6789
Signed by: dstepanov-yadro
GPG key ID: 237AF1A763293BC0

View file

@ -445,6 +445,8 @@ func (s *Shard) Reload(ctx context.Context, opts ...Option) error {
return err
}
}
s.opsLimiter.Close()
s.opsLimiter = c.opsLimiter
return s.setMode(ctx, c.info.Mode)
}