send is_close message to broker

This commit is contained in:
chrislu
2024-03-31 01:28:40 -07:00
parent c9df613b6b
commit 546ae87c39
5 changed files with 261 additions and 232 deletions

View File

@@ -36,6 +36,9 @@ func doPublish(publisher *pub_client.TopicPublisher, id int) {
time.Sleep(time.Second)
// println("Published", string(key), string(value))
}
if err := publisher.FinishPublish(); err != nil {
fmt.Println(err)
}
elapsed := time.Since(startTime)
log.Printf("Publisher %s-%d finished in %s", *clientName, id, elapsed)
}