fhmq / hmq

High performance mqtt broker
Apache License 2.0
1.32k stars 273 forks source link

allow bridge mq cost msg #162

Closed shoothzj closed 2 years ago

shoothzj commented 2 years ago

motivation

allow bridgemq to cost the message

changes

add bool return value on Publish method to allow bridge mq to cost the message

type BridgeMQ interface {
    Publish(e *Elements) (bool, error)
}

If the bridgeMq returns true, we won't send msg to it's subscriber

shoothzj commented 2 years ago

@chowyu08 PTAL, the conflict has been solved. thanks