Skip to content

Commit b15c7b7

Browse files
committed
fix
1 parent 7acd113 commit b15c7b7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

coderd/workspaceagents.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1236,7 +1236,10 @@ func (api *API) workspaceAgentReportStats(rw http.ResponseWriter, r *http.Reques
12361236
SessionCountSSH: req.SessionCountSSH,
12371237
ConnectionMedianLatencyMS: req.ConnectionMedianLatencyMS,
12381238
})
1239-
return xerrors.Errorf("can't insert workspace agent stat: %w", err)
1239+
if err != nil {
1240+
return xerrors.Errorf("can't insert workspace agent stat: %w", err)
1241+
}
1242+
return nil
12401243
})
12411244
errGroup.Go(func() error {
12421245
err := api.Database.UpdateWorkspaceLastUsedAt(ctx, database.UpdateWorkspaceLastUsedAtParams{

0 commit comments

Comments
 (0)