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