[#1636] shard: Change ops limiter on shard reload
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
78f20c2121
commit
250cd71bf8
1 changed files with 4 additions and 0 deletions
|
@ -449,6 +449,10 @@ func (s *Shard) Reload(ctx context.Context, opts ...Option) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if c.opsLimiter != nil {
|
||||||
|
s.opsLimiter.Close()
|
||||||
|
s.opsLimiter = c.opsLimiter
|
||||||
|
}
|
||||||
return s.setMode(ctx, c.info.Mode)
|
return s.setMode(ctx, c.info.Mode)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue