Skip to content

Commit

Permalink
Fixed remark
Browse files Browse the repository at this point in the history
  • Loading branch information
Guitarheroua committed Dec 4, 2024
1 parent 2baa1a3 commit 8c0c247
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions engine/access/rpc/backend/backend_stream_transactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,16 +265,16 @@ func (b *backendSubscribeTransactions) searchForTransactionResult(
txInfo.TransactionID,
txInfo.eventEncodingVersion,
)
}

if err != nil {
// if either the storage or execution node reported no results
if status.Code(err) == codes.NotFound {
// No result yet, indicate that it has not been executed
return nil, nil
if err != nil {
// if either the execution node reported no results
if status.Code(err) == codes.NotFound {
// No result yet, indicate that it has not been executed
return nil, nil
}
// Other Error trying to retrieve the result, return with err
return nil, err
}
// Other Error trying to retrieve the result, return with err
return nil, err
}

return txResult, nil
Expand Down

0 comments on commit 8c0c247

Please sign in to comment.