From f8fbed2449605b99f759963bd03efee79640a218 Mon Sep 17 00:00:00 2001 From: Anton Novojilov Date: Thu, 17 Oct 2024 11:04:43 +0300 Subject: [PATCH] Fix compatibility with the latest version of ek package --- daemon/daemon.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon/daemon.go b/daemon/daemon.go index b26d18f..e7d1351 100644 --- a/daemon/daemon.go +++ b/daemon/daemon.go @@ -33,7 +33,7 @@ import ( knfn "github.com/essentialkaos/ek/v13/knf/validators/network" knfr "github.com/essentialkaos/ek/v13/knf/validators/regexp" - "github.com/essentialkaos/go-badge" + badge "github.com/essentialkaos/go-badge" "github.com/valyala/fasthttp" @@ -280,7 +280,7 @@ func setupCache() error { var err error badgeCache, err = memory.New(memory.Config{ - DefaultExpiration: knf.GetD(CACHE_PERIOD, knf.Second), + DefaultExpiration: knf.GetD(CACHE_PERIOD, knf.SECOND), CleanupInterval: 15 * time.Second, })