fix: config

This commit is contained in:
icey-yu 2024-12-25 16:15:20 +08:00
parent 8a9c921de2
commit 541120dea6
2 changed files with 1 additions and 4 deletions

View File

@ -196,6 +196,7 @@ func (ws *WsServer) Run(done chan error) error {
if sErr != nil {
return errs.WrapMsg(sErr, "shutdown err")
}
fmt.Println("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA")
close(shutdownDone)
return nil
}

View File

@ -2,7 +2,6 @@ package etcd
import (
"context"
"fmt"
"os"
"os/exec"
"runtime"
@ -105,9 +104,6 @@ func restartServer(ctx context.Context) error {
if err != nil {
return errs.New("restart server fail").Wrap()
}
fmt.Println("::::::::::::::::::::::::::::::::::::::::::::::::::::")
fmt.Println(cmd.String())
fmt.Println("::::::::::::::::::::::::::::::::::::::::::::::::::::")
os.Exit(0)
return nil