Skip to content

Commit

Permalink
chore: rename func name
Browse files Browse the repository at this point in the history
  • Loading branch information
Larvan2 committed Aug 30, 2023
1 parent 9536372 commit d099375
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions hub/route/restart.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ func restart(w http.ResponseWriter, r *http.Request) {
// The background context is used because the underlying functions wrap it
// with timeout and shut down the server, which handles current request. It
// also should be done in a separate goroutine for the same reason.
go runRestart(execPath)
go restartExecutable(execPath)
}

func runRestart(execPath string) {
func restartExecutable(execPath string) {
var err error
executor.Shutdown()
if runtime.GOOS == "windows" {
Expand Down
2 changes: 1 addition & 1 deletion hub/route/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@ func upgrade(w http.ResponseWriter, r *http.Request) {
f.Flush()
}

go runRestart(execPath)
go restartExecutable(execPath)
}

0 comments on commit d099375

Please sign in to comment.