NewSyncFlightInfo return a new SyncFlightInfo instance
(height uint32, nodeId uint64)
| 154 | |
| 155 | //NewSyncFlightInfo return a new SyncFlightInfo instance |
| 156 | func NewSyncFlightInfo(height uint32, nodeId uint64) *SyncFlightInfo { |
| 157 | return &SyncFlightInfo{ |
| 158 | Height: height, |
| 159 | nodeId: nodeId, |
| 160 | startTime: time.Now(), |
| 161 | failedNodes: make(map[uint64]int, 0), |
| 162 | } |
| 163 | } |
| 164 | |
| 165 | //GetNodeId return current node id for sending msg |
| 166 | func (this *SyncFlightInfo) GetNodeId() uint64 { |
no outgoing calls
no test coverage detected