timeNow should be used when trying to get the current time for math calculations regarding workspace start and stop time.
(tags ...string)
| 275 | // timeNow should be used when trying to get the current time for math |
| 276 | // calculations regarding workspace start and stop time. |
| 277 | func (s *server) timeNow(tags ...string) time.Time { |
| 278 | return dbtime.Time(s.Clock.Now(tags...)) |
| 279 | } |
| 280 | |
| 281 | // heartbeatLoop runs heartbeatOnce at the interval specified by HeartbeatInterval |
| 282 | // until the lifecycle context is canceled. |
no test coverage detected