AddInConnRecord add in connection to inConnRecord
(addr string)
| 518 | |
| 519 | //AddInConnRecord add in connection to inConnRecord |
| 520 | func (this *NetServer) AddInConnRecord(addr string) { |
| 521 | this.inConnRecord.Lock() |
| 522 | defer this.inConnRecord.Unlock() |
| 523 | this.inConnRecord.InConnectingAddrs.Insert(addr) |
| 524 | log.Debugf("[p2p]add in record %s", addr) |
| 525 | } |
| 526 | |
| 527 | //IsAddrInInConnRecord return result whether addr is in inConnRecordList |
| 528 | func (this *NetServer) IsAddrInInConnRecord(addr string) bool { |