Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit 31f2c83

Browse files
committed
Rename heatbeat to heartbeat.
This may be unnecessary if heatbeat is an inside joke. :)
1 parent d9a77ea commit 31f2c83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/coder/shell.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ func runCommand(ctx context.Context, envName string, command string, args []stri
127127
if err != nil {
128128
return err
129129
}
130-
go heatbeat(ctx, conn, 15*time.Second)
130+
go heartbeat(ctx, conn, 15*time.Second)
131131

132132
execer := wsep.RemoteExecer(conn)
133133
process, err := execer.Start(ctx, wsep.Command{
@@ -175,7 +175,7 @@ func runCommand(ctx context.Context, envName string, command string, args []stri
175175
return err
176176
}
177177

178-
func heatbeat(ctx context.Context, c *websocket.Conn, interval time.Duration) {
178+
func heartbeat(ctx context.Context, c *websocket.Conn, interval time.Duration) {
179179
ticker := time.NewTicker(interval)
180180
defer ticker.Stop()
181181

0 commit comments

Comments
 (0)