Skip to content

Commit 4da0573

Browse files
committed
fixup! feat: Add agent state reporting
1 parent 0527c2b commit 4da0573

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

coderd/database/databasefake/databasefake.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3871,12 +3871,12 @@ func (q *fakeQuerier) GetQuotaConsumedForUser(_ context.Context, userID uuid.UUI
38713871
return sum, nil
38723872
}
38733873

3874-
func (q *fakeQuerier) UpdateWorkspaceAgentStateByID(_ context.Context, id uuid.UUID, state database.AgentState) error {
3874+
func (q *fakeQuerier) UpdateWorkspaceAgentStateByID(_ context.Context, arg database.UpdateWorkspaceAgentStateByIDParams) error {
38753875
q.mutex.Lock()
38763876
defer q.mutex.Unlock()
38773877
for i, agent := range q.workspaceAgents {
3878-
if agent.ID == id {
3879-
agent.State = state
3878+
if agent.ID == arg.ID {
3879+
agent.State = arg.State
38803880
q.workspaceAgents[i] = agent
38813881
return nil
38823882
}

0 commit comments

Comments
 (0)