From 567a204fe2a5f419325caffc9f93131cc07abca4 Mon Sep 17 00:00:00 2001 From: liugq Date: Mon, 5 Jun 2023 11:39:11 +0800 Subject: [PATCH] remove "src" --- modules/agent/state/state.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/agent/state/state.go b/modules/agent/state/state.go index 5a6b986c..9c3e4279 100644 --- a/modules/agent/state/state.go +++ b/modules/agent/state/state.go @@ -9,6 +9,7 @@ import ( "fmt" "github.com/buger/jsonparser" log "github.com/cihub/seelog" + "gopkg.in/yaml.v2" "infini.sh/console/modules/agent/client" "infini.sh/console/modules/agent/common" "infini.sh/console/modules/agent/model" @@ -20,7 +21,6 @@ import ( "infini.sh/framework/modules/elastic" "runtime" "runtime/debug" - "src/gopkg.in/yaml.v2" "sync" "time" ) @@ -102,8 +102,6 @@ func (sm *StateManager) checkAgentStatus() { // status change to online sm.agentIds[agentID] = model.StatusOnline log.Infof("status of agent [%s] changed to online", agentID) - //set timestamp equals 0 to create pipeline - sm.timestamps[agentID] = 0 continue }else{ // already offline