mirror of
https://github.com/wyx2685/V2bX.git
synced 2026-02-05 13:10:11 +00:00
fix some bugs
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package hy
|
||||
|
||||
import (
|
||||
"github.com/apernet/hysteria/core/cs"
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
)
|
||||
@@ -17,8 +16,10 @@ type counters struct {
|
||||
//ConnGauge atomic.Int64
|
||||
}
|
||||
|
||||
func NewUserTrafficCounter() cs.TrafficCounter {
|
||||
return new(UserTrafficCounter)
|
||||
func NewUserTrafficCounter() *UserTrafficCounter {
|
||||
return &UserTrafficCounter{
|
||||
counters: map[string]*counters{},
|
||||
}
|
||||
}
|
||||
|
||||
func (c *UserTrafficCounter) getCounters(auth string) *counters {
|
||||
|
||||
Reference in New Issue
Block a user