cfg: move failed_posts to ees, add static_ttl

This commit is contained in:
ionutboangiu
2025-10-24 17:41:53 +03:00
committed by Dan Christian Bogos
parent 082c412159
commit 295ddec792
45 changed files with 324 additions and 208 deletions

View File

@@ -47,7 +47,7 @@ type GlobalVarS struct {
// Start should handle the sercive start
func (gv *GlobalVarS) Start() (err error) {
engine.SetRoundingDecimals(gv.cfg.GeneralCfg().RoundingDecimals)
ees.SetFailedPostCacheTTL(gv.cfg.GeneralCfg().FailedPostsTTL)
ees.SetFailedPostCacheTTL(gv.cfg.EEsCfg().FailedPosts.TTL, gv.cfg.EEsCfg().FailedPosts.StaticTTL)
engine.SetHTTPPstrTransport(gv.cfg.HTTPCfg().ClientOpts)
return nil
}