MCPcopy Index your code
hub / github.com/coder/coder / now

Method now

coderd/agentapi/lifecycle.go:40–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38}
39
40func (a *LifecycleAPI) now() time.Time {
41 if a.TimeNowFn != nil {
42 return a.TimeNowFn()
43 }
44 return dbtime.Now()
45}
46
47func (a *LifecycleAPI) UpdateLifecycle(ctx context.Context, req *agentproto.UpdateLifecycleRequest) (*agentproto.Lifecycle, error) {
48 workspaceAgent, err := a.AgentFn(ctx)

Callers 1

UpdateLifecycleMethod · 0.95

Calls 1

NowFunction · 0.92

Tested by

no test coverage detected