fix
liuxiaolong
2020-01-13 fb64156e926cfd98d0b4891543bdb47151272486
pubsub.go
@@ -19,10 +19,11 @@
   Topic_Event = "event" //事件消息
)
func NewPublisher(url string,mode int) (PubSub,error) {
   return newPub(url)
func NewPublisher(url string,heartBeatUrl string,mode int) (PubSub,error) {
   return newPub(url,heartBeatUrl)
}
func NewSubscriber(url string,mode int,topics []string) (PubSub,error) {
   return newSub(url, topics)
//processId is process Identifier,unique
func NewSubscriber(url string,heartBeatUrl string,mode int,topics []string,processId string) (PubSub,error) {
   return newSub(url,heartBeatUrl, topics, processId)
}