File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -24,4 +24,4 @@ import (
24
24
"syscall"
25
25
)
26
26
27
- var shutdownSignals = []os.Signal {os .Interrupt , syscall .SIGTERM }
27
+ var ShutdownSignals = []os.Signal {os .Interrupt , syscall .SIGTERM }
Original file line number Diff line number Diff line change @@ -20,4 +20,4 @@ import (
20
20
"os"
21
21
)
22
22
23
- var shutdownSignals = []os.Signal {os .Interrupt }
23
+ var ShutdownSignals = []os.Signal {os .Interrupt }
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ func SetupSignalContext() context.Context {
43
43
shutdownHandler = make (chan os.Signal , 2 )
44
44
45
45
ctx , cancel := context .WithCancel (context .Background ())
46
- signal .Notify (shutdownHandler , shutdownSignals ... )
46
+ signal .Notify (shutdownHandler , ShutdownSignals ... )
47
47
go func () {
48
48
<- shutdownHandler
49
49
cancel ()
@@ -59,7 +59,7 @@ func SetupSignalContext() context.Context {
59
59
func RequestShutdown () bool {
60
60
if shutdownHandler != nil {
61
61
select {
62
- case shutdownHandler <- shutdownSignals [0 ]:
62
+ case shutdownHandler <- ShutdownSignals [0 ]:
63
63
return true
64
64
default :
65
65
}
You can’t perform that action at this time.
0 commit comments