GetFailedTimes return failed times of a node
(nodeId uint64)
| 186 | |
| 187 | //GetFailedTimes return failed times of a node |
| 188 | func (this *SyncFlightInfo) GetFailedTimes(nodeId uint64) int { |
| 189 | this.lock.RLock() |
| 190 | defer this.lock.RUnlock() |
| 191 | times, ok := this.failedNodes[nodeId] |
| 192 | if !ok { |
| 193 | return 0 |
| 194 | } |
| 195 | return times |
| 196 | } |
| 197 | |
| 198 | //GetTotalFailedTimes return the total failed times of request |
| 199 | func (this *SyncFlightInfo) GetTotalFailedTimes() int { |
no outgoing calls
no test coverage detected