LastSent returns a time.Time indicating the last time this candidate was sent.
()
| 522 | // LastSent returns a time.Time indicating the last time |
| 523 | // this candidate was sent. |
| 524 | func (c *candidateBase) LastSent() time.Time { |
| 525 | if lastSent := c.lastSent.Load(); lastSent != 0 { |
| 526 | return getMonoTime(lastSent) |
| 527 | } |
| 528 | |
| 529 | return time.Time{} |
| 530 | } |
| 531 | |
| 532 | func (c *candidateBase) setLastSent(t time.Time) { |
| 533 | c.lastSent.Store(getMonoNanos(t)) |