Skip to content

Commit eb2c835

Browse files
authored
Merge pull request coder#66 from stephenwithav/fix-heartbeat-typo
Rename heatbeat to heartbeat.
2 parents d9a77ea + 31f2c83 commit eb2c835

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/coder/shell.go

Lines changed: 2 additions & 2 deletions
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)