mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-11 06:23:47 +00:00
Improves function name
This commit is contained in:
parent
d6a2dd3ec6
commit
145865d3c3
1 changed files with 2 additions and 2 deletions
|
|
@ -96,7 +96,7 @@ func shisui(ctx *cli.Context) error {
|
||||||
setDefaultLogger(*config)
|
setDefaultLogger(*config)
|
||||||
|
|
||||||
clientChan := make(chan *Client, 1)
|
clientChan := make(chan *Client, 1)
|
||||||
go sigInterrupt(clientChan)
|
go handlerInterrupt(clientChan)
|
||||||
|
|
||||||
addr, err := net.ResolveUDPAddr("udp", config.Protocol.ListenAddr)
|
addr, err := net.ResolveUDPAddr("udp", config.Protocol.ListenAddr)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
@ -118,7 +118,7 @@ func setDefaultLogger(config Config) {
|
||||||
log.SetDefault(defaultLogger)
|
log.SetDefault(defaultLogger)
|
||||||
}
|
}
|
||||||
|
|
||||||
func sigInterrupt(clientChan <-chan *Client) {
|
func handlerInterrupt(clientChan <-chan *Client) {
|
||||||
interrupt := make(chan os.Signal, 1)
|
interrupt := make(chan os.Signal, 1)
|
||||||
signal.Notify(interrupt, syscall.SIGINT, syscall.SIGTERM)
|
signal.Notify(interrupt, syscall.SIGINT, syscall.SIGTERM)
|
||||||
defer signal.Stop(interrupt)
|
defer signal.Stop(interrupt)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue