chore: fix function name in comment
Signed-off-by: dropbigfish <fillfish@foxmail.com>
This commit is contained in:
parent
245c6e9bd1
commit
5239a23aee
2 changed files with 2 additions and 2 deletions
|
|
@ -152,7 +152,7 @@ func (p *packetNumberIndexedQueue[T]) EntrySlotsUsed() int {
|
|||
return p.entries.Len()
|
||||
}
|
||||
|
||||
// LastPacket returns packet number of the first entry in the queue.
|
||||
// FirstPacket returns packet number of the first entry in the queue.
|
||||
func (p *packetNumberIndexedQueue[T]) FirstPacket() (packetNumber congestion.PacketNumber) {
|
||||
return p.firstPacket
|
||||
}
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ func (s *trafficStatsServerImpl) LogTraffic(id string, tx, rx uint64) (ok bool)
|
|||
return true
|
||||
}
|
||||
|
||||
// LogOnlineStateChanged updates the online state to the online map.
|
||||
// LogOnlineState updates the online state to the online map.
|
||||
func (s *trafficStatsServerImpl) LogOnlineState(id string, online bool) {
|
||||
s.Mutex.Lock()
|
||||
defer s.Mutex.Unlock()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue