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

Rename heatbeat to heartbeat. #66

Merged
merged 1 commit into from
Jul 1, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Rename heatbeat to heartbeat.
This may be unnecessary if heatbeat is an inside joke. :)
  • Loading branch information
stephenwithav committed Jul 1, 2020
commit 31f2c830a0fa383198a7ab9e284cc063dbdc4843
4 changes: 2 additions & 2 deletions cmd/coder/shell.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down Expand Up @@ -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()

Expand Down