Skip to content

Commit

Permalink
修复demo
Browse files Browse the repository at this point in the history
  • Loading branch information
lvyahui8 committed Nov 25, 2024
1 parent 58e6475 commit 9436490
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sdk/agent/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion sdk/common/collections/lru_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
2 changes: 1 addition & 1 deletion sdk/common/logging/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit 9436490

Please sign in to comment.