add WithCallback

This commit is contained in:
finley
2024-02-29 21:11:24 +08:00
parent f63cf13941
commit b1749b22b5
7 changed files with 84 additions and 31 deletions

View File

@@ -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...),
}
}