Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit429144d

Browse files
authored
fix: copy app ID in healthcheck (#12087)
1 parentbb30885 commit429144d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎codersdk/agentsdk/convert.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,11 @@ func ProtoFromAppHealthsRequest(req PostAppHealthsRequest) (*proto.BatchUpdateAp
286286
if!ok {
287287
returnnil,xerrors.Errorf("unknown app health: %s",h)
288288
}
289+
290+
varidCopy uuid.UUID
291+
copy(idCopy[:],id[:])
289292
pReq.Updates=append(pReq.Updates,&proto.BatchUpdateAppHealthRequest_HealthUpdate{
290-
Id:id[:],
293+
Id:idCopy[:],
291294
Health:proto.AppHealth(hp),
292295
})
293296
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp