Skip to content

Commit

Permalink
Handle error of sender.GetStatus()
Browse files Browse the repository at this point in the history
  • Loading branch information
eunsoo-icon committed Aug 10, 2023
1 parent e98620d commit 899500c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions common/link/link.go
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,9 @@ func (l *Link) result(rr *types.RelayResult) error {
if rr.Finalized != true {
l.relayState = PENDING
} else {
l.updateBMCLinkStatus()
if err := l.updateBMCLinkStatus(); err != nil {
return err
}
l.removeAllRelayMessage()
l.relayState = RUNNING
if err := l.handleRelayMessage(); err != nil {
Expand All @@ -562,7 +564,9 @@ func (l *Link) result(rr *types.RelayResult) error {
if rr.Finalized != true {
l.relayState = PENDING
} else {
l.updateBMCLinkStatus()
if err := l.updateBMCLinkStatus(); err != nil {
return err
}
l.relayState = RUNNING
index := l.removeRelayMessage(l.bls)
if index == 0 {
Expand Down

0 comments on commit 899500c

Please sign in to comment.