Skip to content

Commit

Permalink
hot fix message sender
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-tron committed Dec 4, 2023
1 parent cc29b91 commit 2d3b9ac
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/blockchain/msg_sender.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,12 @@ func (ms *MsgSender) SendMessage(ctx context.Context, msgCopy ExtInMsgCopy) erro
return err
}
for _, ch := range ms.receivers {
ch <- msgCopy
select {
case ch <- msgCopy:
default:

}

}
_, err := ms.client.SendMessage(ctx, msgCopy.Payload)
return err
Expand Down

0 comments on commit 2d3b9ac

Please sign in to comment.