From 8f48ab6491c2993f84476441526de9c6d18f492e Mon Sep 17 00:00:00 2001 From: "Arthur K." Date: Mon, 19 Jan 2026 18:42:18 +0300 Subject: [PATCH] chore: change the defaults --- internal/config/config.go | 2 +- internal/config/defaults.go | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/internal/config/config.go b/internal/config/config.go index 25ee12d..2a3a76f 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -40,7 +40,7 @@ func FromFile(filename string) (Config, error) { return Config{}, fmt.Errorf("parse config file: %w", err) } - config := defaultConfig + config := DefaultConfig config.Node.Merge(temp.Node) if c := temp.Configs.Master; c != nil { diff --git a/internal/config/defaults.go b/internal/config/defaults.go index c788047..d0c2a30 100644 --- a/internal/config/defaults.go +++ b/internal/config/defaults.go @@ -1,17 +1,17 @@ package config -var defaultConfig = Config{ +var DefaultConfig = Config{ Node: NodeConfig{ ListenOn: "0.0.0.0", Port: 56714, - KeepaliveInterval: 1, + KeepaliveInterval: 10, LogLevel: LogLevelInfo, }, Configs: Configs{ Master: MasterConfig{ - ObserverInterval: 10, - BackoffSeconds: 2, - BackoffCount: 3, + ObserverInterval: 120, + BackoffSeconds: 1, + BackoffCount: 4, }, }, }