fixed govet issues
This commit is contained in:
parent
70fb6d396d
commit
18c38d1fb0
@ -63,7 +63,6 @@ linters:
|
|||||||
- paralleltest
|
- paralleltest
|
||||||
- maintidx
|
- maintidx
|
||||||
- ifshort
|
- ifshort
|
||||||
- gosimple
|
|
||||||
- unparam
|
- unparam
|
||||||
- nakedret
|
- nakedret
|
||||||
- misspell
|
- misspell
|
||||||
@ -93,7 +92,6 @@ linters:
|
|||||||
- unconvert
|
- unconvert
|
||||||
- varcheck
|
- varcheck
|
||||||
- errchkjson
|
- errchkjson
|
||||||
- govet
|
|
||||||
- nilnil
|
- nilnil
|
||||||
- thelper
|
- thelper
|
||||||
- ireturn
|
- ireturn
|
||||||
|
@ -121,7 +121,9 @@ func Execute() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func handleSignal(svr *client.Service) {
|
func handleSignal(svr *client.Service) {
|
||||||
ch := make(chan os.Signal)
|
// We must use a buffered channel or risk missing the signal
|
||||||
|
// if we're not ready to receive when the signal is sent.
|
||||||
|
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)
|
||||||
|
@ -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})
|
||||||
|
Loading…
Reference in New Issue
Block a user