godis
godis copied to clipboard
fix: misuse unbuffered channel on os signal
signal.Notify() requires a buffered channel for signals. Explicitly stated in the documentation
Package signal will not block sending to c: the caller must ensure that c has sufficient buffer space to keep up with the expected signal rate. For a channel used for notification of just one signal value, a buffer of size 1 is sufficient.