Updated returns the time when any of the progress related counters was last updated.
()
| 429 | |
| 430 | // Updated returns the time when any of the progress related counters was last updated. |
| 431 | func (s *sharedPullerState) Updated() time.Time { |
| 432 | s.mut.RLock() |
| 433 | t := s.updated |
| 434 | s.mut.RUnlock() |
| 435 | return t |
| 436 | } |
| 437 | |
| 438 | // AvailableUpdated returns the time last time list of available blocks was updated |
| 439 | func (s *sharedPullerState) AvailableUpdated() time.Time { |