fixed govet warnings

This commit is contained in:
Dzyanis Kuzmenka 2022-03-19 23:09:42 +03:00
parent 452fe25cc6
commit c3ecc8c145
2 changed files with 2 additions and 2 deletions

View File

@ -121,7 +121,7 @@ func Execute() {
} }
func handleSignal(svr *client.Service) { func handleSignal(svr *client.Service) {
ch := make(chan os.Signal) ch := make(chan os.Signal, 1)
signal.Notify(ch, syscall.SIGINT, syscall.SIGTERM) signal.Notify(ch, syscall.SIGINT, syscall.SIGTERM)
<-ch <-ch
svr.GracefulClose(500 * time.Millisecond) svr.GracefulClose(500 * time.Millisecond)

View File

@ -149,7 +149,7 @@ var _ = Describe("[Feature: Server-Plugins]", func() {
[tcp] [tcp]
type = tcp type = tcp
local_port = {{ .%s }} local_port = {{ .%s }}
remote_port = 0 remote_port = %d
`, framework.TCPEchoServerPort, remotePort) `, framework.TCPEchoServerPort, remotePort)
f.RunProcesses([]string{serverConf}, []string{clientConf}) f.RunProcesses([]string{serverConf}, []string{clientConf})