From 31f2c830a0fa383198a7ab9e284cc063dbdc4843 Mon Sep 17 00:00:00 2001 From: Steven Edwards Date: Wed, 1 Jul 2020 09:53:30 -0400 Subject: [PATCH] Rename heatbeat to heartbeat. This may be unnecessary if heatbeat is an inside joke. :) --- cmd/coder/shell.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/coder/shell.go b/cmd/coder/shell.go index 9961092f..bf9c43be 100644 --- a/cmd/coder/shell.go +++ b/cmd/coder/shell.go @@ -127,7 +127,7 @@ func runCommand(ctx context.Context, envName string, command string, args []stri if err != nil { return err } - go heatbeat(ctx, conn, 15*time.Second) + go heartbeat(ctx, conn, 15*time.Second) execer := wsep.RemoteExecer(conn) process, err := execer.Start(ctx, wsep.Command{ @@ -175,7 +175,7 @@ func runCommand(ctx context.Context, envName string, command string, args []stri return err } -func heatbeat(ctx context.Context, c *websocket.Conn, interval time.Duration) { +func heartbeat(ctx context.Context, c *websocket.Conn, interval time.Duration) { ticker := time.NewTicker(interval) defer ticker.Stop()