File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,10 @@ import (
14
14
)
15
15
16
16
const (
17
+ // defaultWrapUpTime is the default time to wait before calling wrap up listeners.
17
18
defaultWrapUpTime = time .Second
18
- // why we use 5500 milliseconds is because most of our queue are blocking mode with 5 seconds
19
+ // defaultWaitTime is the default time to wait before force quitting.
20
+ // why we use 5500 milliseconds is because most of our queues are blocking mode with 5 seconds
19
21
defaultWaitTime = 5500 * time .Millisecond
20
22
)
21
23
29
31
30
32
// ShutdownConf defines the shutdown configuration for the process.
31
33
type ShutdownConf struct {
34
+ // WrapUpTime is the time to wait before calling shutdown listeners.
32
35
WrapUpTime time.Duration `json:",default=1s"`
33
- WaitTime time.Duration `json:",default=5.5s"`
36
+ // WaitTime is the time to wait before force quitting.
37
+ WaitTime time.Duration `json:",default=5.5s"`
34
38
}
35
39
36
40
// AddShutdownListener adds fn as a shutdown listener.
You can’t perform that action at this time.
0 commit comments