mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2025-01-12 04:17:25 -05:00
turn back on sigchanyzer: fix lint errors
This commit is contained in:
parent
a688d660a0
commit
b30edba49d
@ -32,8 +32,6 @@ linters-settings:
|
|||||||
# to possibly non-intuitive layout of struct fields (harder to read). Disable
|
# to possibly non-intuitive layout of struct fields (harder to read). Disable
|
||||||
# `fieldalignment` check here until we evaluate if it is worthwhile.
|
# `fieldalignment` check here until we evaluate if it is worthwhile.
|
||||||
- fieldalignment
|
- fieldalignment
|
||||||
# https://github.com/golangci/golangci-lint/issues/1973
|
|
||||||
- sigchanyzer
|
|
||||||
lll:
|
lll:
|
||||||
line-length: 140
|
line-length: 140
|
||||||
misspell:
|
misspell:
|
||||||
|
@ -141,7 +141,9 @@ func (a *App) startDedicatedServer() error {
|
|||||||
return srvErr
|
return srvErr
|
||||||
}
|
}
|
||||||
|
|
||||||
c := 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.
|
||||||
|
c := make(chan os.Signal, 1)
|
||||||
signal.Notify(c, os.Interrupt, syscall.SIGTERM) // This traps Control-c to safely shut down the server
|
signal.Notify(c, os.Interrupt, syscall.SIGTERM) // This traps Control-c to safely shut down the server
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
|
Loading…
Reference in New Issue
Block a user