Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
nkitlabs committed Dec 6, 2024
1 parent cb792c8 commit 7b043da
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions relayer/tunnel_relayer.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,9 @@ func (t *TunnelRelayer) CheckAndRelay(ctx context.Context) (err error) {

switch tsstypes.SigningStatus(tsstypes.SigningStatus_value[signing.Status]) {
case tsstypes.SIGNING_STATUS_FALLEN:
t.Log.Error(
"Failed to relay packet",
zap.Error(fmt.Errorf("signing status is fallen")),
zap.Uint64("sequence", seq),
)
return fmt.Errorf("signing status is fallen")
err := fmt.Errorf("signing status is fallen")
t.Log.Error("Failed to relay packet", zap.Error(err), zap.Uint64("sequence", seq))
return err

case tsstypes.SIGNING_STATUS_WAITING:
t.Log.Info(
Expand Down

0 comments on commit 7b043da

Please sign in to comment.