delNode remove from node list
(nodeId uint64)
| 632 | |
| 633 | //delNode remove from node list |
| 634 | func (this *BlockSyncMgr) delNode(nodeId uint64) { |
| 635 | this.lock.Lock() |
| 636 | defer this.lock.Unlock() |
| 637 | delete(this.nodeWeights, nodeId) |
| 638 | log.Infof("delNode:%d", nodeId) |
| 639 | if len(this.nodeWeights) == 0 { |
| 640 | log.Warnf("no sync nodes") |
| 641 | } |
| 642 | log.Infof("OnDelNode:%d", nodeId) |
| 643 | } |
| 644 | |
| 645 | func (this *BlockSyncMgr) tryGetSyncHeaderLock() bool { |
| 646 | this.lock.Lock() |
no test coverage detected