mirror of
https://github.com/oarkflow/mq.git
synced 2025-10-04 15:42:49 +08:00
feat: separate broker
This commit is contained in:
4
util.go
4
util.go
@@ -15,6 +15,10 @@ func (b *Broker) SyncMode() bool {
|
||||
return b.opts.syncMode
|
||||
}
|
||||
|
||||
func (b *Broker) NotifyHandler() func(context.Context, Result) {
|
||||
return b.opts.notifyResponse
|
||||
}
|
||||
|
||||
func (b *Broker) HandleCallback(ctx context.Context, msg *codec.Message) {
|
||||
if b.opts.callback != nil {
|
||||
var result Result
|
||||
|
Reference in New Issue
Block a user