chore: rename func name
This commit is contained in:
parent
9536372cfb
commit
d099375200
2 changed files with 3 additions and 3 deletions
|
@ -39,10 +39,10 @@ func restart(w http.ResponseWriter, r *http.Request) {
|
||||||
// The background context is used because the underlying functions wrap it
|
// The background context is used because the underlying functions wrap it
|
||||||
// with timeout and shut down the server, which handles current request. 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.
|
// 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
|
var err error
|
||||||
executor.Shutdown()
|
executor.Shutdown()
|
||||||
if runtime.GOOS == "windows" {
|
if runtime.GOOS == "windows" {
|
||||||
|
|
|
@ -41,5 +41,5 @@ func upgrade(w http.ResponseWriter, r *http.Request) {
|
||||||
f.Flush()
|
f.Flush()
|
||||||
}
|
}
|
||||||
|
|
||||||
go runRestart(execPath)
|
go restartExecutable(execPath)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue