create producer
This commit is contained in:
@@ -89,6 +89,9 @@ func start() {
|
|||||||
if tcp {
|
if tcp {
|
||||||
go utils.Listen(socketAddress)
|
go utils.Listen(socketAddress)
|
||||||
}
|
}
|
||||||
|
if pulsar {
|
||||||
|
utils.CreateProducer(pulsarUrl, topic, name)
|
||||||
|
}
|
||||||
for utils.ServerRunning {
|
for utils.ServerRunning {
|
||||||
if !utils.IsPortOpen() {
|
if !utils.IsPortOpen() {
|
||||||
logger.Info("try to open port")
|
logger.Info("try to open port")
|
||||||
|
|||||||
Reference in New Issue
Block a user