forked from TrueCloudLab/frostfs-node
[#325] node: Introduce unsafe_disable param to disable policer
Signed-off-by: Airat Arifullin a.arifullin@yadro.com
This commit is contained in:
parent
365a7ca0f4
commit
a3e30062df
3 changed files with 13 additions and 1 deletions
|
@ -204,6 +204,11 @@ func initObjectService(c *cfg) {
|
|||
}
|
||||
|
||||
func addPolicer(c *cfg, keyStorage *util.KeyStorage, clientConstructor *cache.ClientCache) {
|
||||
if policerconfig.UnsafeDisable(c.appCfg) {
|
||||
c.log.Warn(logs.FrostFSNodePolicerIsDisabled)
|
||||
return
|
||||
}
|
||||
|
||||
ls := c.cfgObject.cfgLocalStorage.localStorage
|
||||
|
||||
pol := policer.New(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue