mirror of
https://github.com/apernet/hysteria.git
synced 2025-04-03 20:47:38 +03:00
chore: small changes to TrafficLogger function names & update all mocks to mockery v2.43.0
This commit is contained in:
parent
6a34a9e7a0
commit
9d4b3e608a
14 changed files with 125 additions and 69 deletions
|
@ -42,7 +42,7 @@ type trafficStatsEntry struct {
|
|||
Rx uint64 `json:"rx"`
|
||||
}
|
||||
|
||||
func (s *trafficStatsServerImpl) Log(id string, tx, rx uint64) (ok bool) {
|
||||
func (s *trafficStatsServerImpl) LogTraffic(id string, tx, rx uint64) (ok bool) {
|
||||
s.Mutex.Lock()
|
||||
defer s.Mutex.Unlock()
|
||||
|
||||
|
@ -64,7 +64,7 @@ func (s *trafficStatsServerImpl) Log(id string, tx, rx uint64) (ok bool) {
|
|||
}
|
||||
|
||||
// LogOnlineStateChanged updates the online state to the online map.
|
||||
func (s *trafficStatsServerImpl) LogOnlineStateChanged(id string, online bool) {
|
||||
func (s *trafficStatsServerImpl) LogOnlineState(id string, online bool) {
|
||||
s.Mutex.Lock()
|
||||
defer s.Mutex.Unlock()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue