mirror of
https://github.com/oarkflow/mq.git
synced 2025-10-06 00:16:49 +08:00
init: publisher
This commit is contained in:
@@ -47,7 +47,7 @@ func main() {
|
|||||||
go func() {
|
go func() {
|
||||||
time.Sleep(2 * time.Second)
|
time.Sleep(2 * time.Second)
|
||||||
finalResult := d.Send([]byte(`[{"user_id": 1}, {"user_id": 2}]`))
|
finalResult := d.Send([]byte(`[{"user_id": 1}, {"user_id": 2}]`))
|
||||||
log.Printf("Final result received: %s", string(finalResult.Payload))
|
log.Printf("Result received: %s %s", finalResult.MessageID, string(finalResult.Payload))
|
||||||
}()
|
}()
|
||||||
|
|
||||||
err := d.Start(context.TODO())
|
err := d.Start(context.TODO())
|
||||||
|
Reference in New Issue
Block a user