From 145865d3c36364e51940d71bfcd52ebfe0118b9c Mon Sep 17 00:00:00 2001 From: Rafael Sampaio <5679073+r4f4ss@users.noreply.github.com> Date: Wed, 18 Sep 2024 18:06:56 -0300 Subject: [PATCH] Improves function name --- cmd/shisui/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/shisui/main.go b/cmd/shisui/main.go index c2aa00e463..3bb01f3587 100644 --- a/cmd/shisui/main.go +++ b/cmd/shisui/main.go @@ -96,7 +96,7 @@ func shisui(ctx *cli.Context) error { setDefaultLogger(*config) clientChan := make(chan *Client, 1) - go sigInterrupt(clientChan) + go handlerInterrupt(clientChan) addr, err := net.ResolveUDPAddr("udp", config.Protocol.ListenAddr) if err != nil { @@ -118,7 +118,7 @@ func setDefaultLogger(config Config) { log.SetDefault(defaultLogger) } -func sigInterrupt(clientChan <-chan *Client) { +func handlerInterrupt(clientChan <-chan *Client) { interrupt := make(chan os.Signal, 1) signal.Notify(interrupt, syscall.SIGINT, syscall.SIGTERM) defer signal.Stop(interrupt)