Skip to content

Commit

Permalink
style: Optimize code
Browse files Browse the repository at this point in the history
Change-Id: I5cf16a13f03e312f745532f5ba6aab26cfbb5d0b
  • Loading branch information
andeya committed Oct 16, 2019
1 parent f751708 commit 9986fa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion peer.go
Expand Up @@ -199,7 +199,7 @@ func (p *peer) RangeSession(fn func(sess Session) bool) {

// CountSession returns the number of sessions.
func (p *peer) CountSession() int {
return p.sessHub.sessions.Len()
return p.sessHub.len()
}

// Dial connects with the peer of the destination address.
Expand Down

0 comments on commit 9986fa4

Please sign in to comment.