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
This repository was archived by the owner on Aug 30, 2024. It is now read-only.
/coder-v1-cliPublic archive

Commit8917fb8

Browse files
committed
Patch heartbeat ping logic
1 parentf6bc6da commit8917fb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎internal/cmd/shell.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ func heartbeat(ctx context.Context, conn *websocket.Conn, interval time.Duration
216216
case<-ctx.Done():
217217
return
218218
case<-ticker.C:
219-
iferr:=conn.Ping(ctx);err!=nil||true{
219+
iferr:=conn.Ping(ctx);err!=nil {
220220
// don't try to do multi-line here because the raw mode makes things weird
221221
clog.Log(clog.Fatal("failed to ping websocket, exiting: "+err.Error()))
222222
os.Exit(1)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp