forked from TrueCloudLab/frostfs-node
[#730] node/config/morph: Add disable_cache
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
cb842096d4
commit
c423aa432a
7 changed files with 13 additions and 2 deletions
|
@ -52,3 +52,9 @@ func DialTimeout(c *config.Config) time.Duration {
|
|||
|
||||
return DialTimeoutDefault
|
||||
}
|
||||
|
||||
// DisableCache returns value of "disable_cache" config parameter
|
||||
// from "morph" section.
|
||||
func DisableCache(c *config.Config) bool {
|
||||
return config.BoolSafe(c.Sub(subsection), "disable_cache")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue