diff --git a/sdk/agent/http.go b/sdk/agent/http.go index 44e7f0d..f76bf07 100644 --- a/sdk/agent/http.go +++ b/sdk/agent/http.go @@ -148,7 +148,7 @@ func trafficList(writer http.ResponseWriter, request *http.Request) { allGraphs := graphCache.Values() var res []*Traffic for _, gList := range allGraphs { - g := mergeGraphs(gList.(*collections.LinkedList[*graph]).Values()) + g := mergeGraphs(gList.list.Values()) res = append(res, toTraffic(g, false)) } responseJson(writer, res) diff --git a/sdk/common/collections/lru_cache.go b/sdk/common/collections/lru_cache.go index 15d5890..f1f17bb 100644 --- a/sdk/common/collections/lru_cache.go +++ b/sdk/common/collections/lru_cache.go @@ -84,7 +84,7 @@ func (cache *LRUCache[K, V]) Remove(key K) { cache.removeItem(item) } -func (cache *LRUCache[K, V]) Values() (res []any) { +func (cache *LRUCache[K, V]) Values() (res []V) { cache.lock.RLock() defer cache.lock.RUnlock() diff --git a/sdk/common/logging/log.go b/sdk/common/logging/log.go index a96c346..5128bfd 100644 --- a/sdk/common/logging/log.go +++ b/sdk/common/logging/log.go @@ -178,7 +178,7 @@ func (f *logfile) getBaseLogFile() string { if utils.OS.NotExists(logPath) { utils.OS.MkDirs(logPath) } - return filepath.Join(logPath, "run.logging") + return filepath.Join(logPath, "run.log") } var linePool = &sync.Pool{