[#730] node/config/morph: Add disable_cache

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
Pavel Karpy 2021-07-29 17:57:17 +03:00 committed by Alex Vanin
parent cb842096d4
commit c423aa432a
7 changed files with 13 additions and 2 deletions

View file

@ -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")
}