Closed shoothzj closed 2 years ago
allow bridgemq to cost the message
add bool return value on Publish method to allow bridge mq to cost the message
Publish
type BridgeMQ interface { Publish(e *Elements) (bool, error) }
If the bridgeMq returns true, we won't send msg to it's subscriber
@chowyu08 PTAL, the conflict has been solved. thanks
motivation
allow bridgemq to cost the message
changes
add bool return value on
Publish
method to allow bridge mq to cost the messageIf the bridgeMq returns true, we won't send msg to it's subscriber