Skip to content

Commit c9c1636

Browse files
committed
ipn/wg: cache stats against wg id
1 parent 9bde432 commit c9c1636

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

intra/ipn/wg/stats.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ func (s *ifstats) LeastRecentHandshake() int64 {
109109
}
110110

111111
func ReadStats(id, config string) *ifstats {
112-
v, _ := ba.Do("ReadStats", func() (*ifstats, error) {
112+
v, _ := ba.Do(id, func() (*ifstats, error) {
113113
return readStats(config), nil
114114
})
115115
if v == nil { // unlikely

0 commit comments

Comments
 (0)