create producer

This commit is contained in:
w1ndyb0y
2021-02-01 17:07:52 +08:00
parent b9a826faf8
commit 9ec63dd8b8
+3
View File
@@ -89,6 +89,9 @@ func start() {
if tcp {
go utils.Listen(socketAddress)
}
if pulsar {
utils.CreateProducer(pulsarUrl, topic, name)
}
for utils.ServerRunning {
if !utils.IsPortOpen() {
logger.Info("try to open port")