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