mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-11-16 11:42:43 +08:00
chore: rename func name
This commit is contained in:
parent
c5631f0519
commit
b8894c3d09
|
@ -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" {
|
||||
|
|
|
@ -41,5 +41,5 @@ func upgrade(w http.ResponseWriter, r *http.Request) {
|
|||
f.Flush()
|
||||
}
|
||||
|
||||
go runRestart(execPath)
|
||||
go restartExecutable(execPath)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user