@@ -47,12 +47,13 @@ type Options struct {
4747 QueueScanDirtyPercent float64
4848
4949 // msg and command options
50- MsgTimeout time.Duration `flag:"msg-timeout"`
51- MaxMsgTimeout time.Duration `flag:"max-msg-timeout"`
52- MaxMsgSize int64 `flag:"max-msg-size"`
53- MaxBodySize int64 `flag:"max-body-size"`
54- MaxReqTimeout time.Duration `flag:"max-req-timeout"`
55- ClientTimeout time.Duration
50+ MsgTimeout time.Duration `flag:"msg-timeout"`
51+ MaxMsgTimeout time.Duration `flag:"max-msg-timeout"`
52+ MaxMsgSize int64 `flag:"max-msg-size"`
53+ MaxBodySize int64 `flag:"max-body-size"`
54+ MaxReqTimeout time.Duration `flag:"max-req-timeout"`
55+ ClientTimeout time.Duration
56+ MaxDeferTimeout time.Duration `flag:"max-defer-timeout"`
5657
5758 // client overridable configuration options
5859 MaxHeartbeatInterval time.Duration `flag:"max-heartbeat-interval"`
@@ -151,12 +152,13 @@ func NewOptions() *Options {
151152 QueueScanWorkerPoolMax : 4 ,
152153 QueueScanDirtyPercent : 0.25 ,
153154
154- MsgTimeout : 60 * time .Second ,
155- MaxMsgTimeout : 15 * time .Minute ,
156- MaxMsgSize : 1024 * 1024 ,
157- MaxBodySize : 5 * 1024 * 1024 ,
158- MaxReqTimeout : 1 * time .Hour ,
159- ClientTimeout : 60 * time .Second ,
155+ MsgTimeout : 60 * time .Second ,
156+ MaxMsgTimeout : 15 * time .Minute ,
157+ MaxMsgSize : 1024 * 1024 ,
158+ MaxBodySize : 5 * 1024 * 1024 ,
159+ MaxReqTimeout : 1 * time .Hour ,
160+ ClientTimeout : 60 * time .Second ,
161+ MaxDeferTimeout : 1 * time .Hour ,
160162
161163 MaxHeartbeatInterval : 60 * time .Second ,
162164 MaxRdyCount : 2500 ,
0 commit comments