mirror of
https://github.com/HDT3213/delayqueue.git
synced 2025-10-05 07:06:53 +08:00
add WithCallback
This commit is contained in:
@@ -13,9 +13,8 @@ type Monitor struct {
|
||||
|
||||
// NewMonitor0 creates a new Monitor by a RedisCli instance
|
||||
func NewMonitor0(name string, cli RedisCli, opts ...interface{}) *Monitor {
|
||||
opts = append(opts, noCallbackOpt(1))
|
||||
return &Monitor{
|
||||
inner: NewQueue0(name, cli, nil, opts...),
|
||||
inner: NewQueue0(name, cli, opts...),
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user