Skip to content

Commit

Permalink
unicast func (#212)
Browse files Browse the repository at this point in the history
  • Loading branch information
leowei1234567 authored Apr 4, 2023
1 parent 02ccc5c commit 584756b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/amop/unicast_pub/publisher.go
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func main() {
message := "hello, FISCO BCOS, I am unicast publisher!"
for i := 0; i < 50; i++ {
logrus.Printf("publish message: %s ", message+" "+strconv.Itoa(i))
err = c.BroadcastAMOPMsg(topic, []byte(message+" "+strconv.Itoa(i)))
_, err = c.SendAMOPMsg(topic, []byte(message+" "+strconv.Itoa(i)))
time.Sleep(200 * time.Millisecond)
if err != nil {
logrus.Printf("PushTopicDataRandom failed, err: %v\n", err)
Expand Down

0 comments on commit 584756b

Please sign in to comment.