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

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