SetLinkClockForTesting sets the clock the linked-change time budget reads. Production code must not call this. Set it only with no request in flight.
(clock func() time.Time)
| 361 | // SetLinkClockForTesting sets the clock the linked-change time budget reads. |
| 362 | // Production code must not call this. Set it only with no request in flight. |
| 363 | func (s *Store) SetLinkClockForTesting(clock func() time.Time) (restore func()) { |
| 364 | prev := s.linkClock |
| 365 | s.linkClock = clock |
| 366 | return func() { s.linkClock = prev } |
| 367 | } |
no outgoing calls