pex_reactor.go
func (r *PEXReactor) IncrementMsgCountForPeer(addr string) {
	var count uint16
	countI := r.msgCountByPeer.Get(addr)
	if countI != nil {
		count = countI.(uint16)
	}
	count++
	r.msgCountByPeer.Set(addr, count)
}
func (r *PEXReactor) IncrementMsgCountForPeer(addr string) {
	var count uint16
	countI := r.msgCountByPeer.Get(addr)
	if countI != nil {
		count = countI.(uint16)
	}
	count++
	r.msgCountByPeer.Set(addr, count)
}
func ( r * PEXReactor ) IncrementMsgCountForPeer ( addr string ) { var count uint16 countI := r . msgCountByPeer . Get ( addr ) if countI != nil { count = countI . ( uint16 ) } count ++ r . msgCountByPeer . Set ( addr , count ) }
// Increment or initialize the msg count for the peer in the CMap
Increment or initialize the msg count for the peer in the CMap