appendReqTime append a node's request time
(nodeId uint64)
| 953 | |
| 954 | //appendReqTime append a node's request time |
| 955 | func (this *BlockSyncMgr) appendReqTime(nodeId uint64) { |
| 956 | n := this.getNodeWeight(nodeId) |
| 957 | if n != nil { |
| 958 | n.AppendNewReqtime() |
| 959 | } |
| 960 | } |
| 961 | |
| 962 | //addNewSpeed apend the new speed to tail, remove the oldest one |
| 963 | func (this *BlockSyncMgr) addNewSpeed(nodeId uint64, speed float32) { |
no test coverage detected