Skip to content

Commit

Permalink
%e -> %v for log statements
Browse files Browse the repository at this point in the history
  • Loading branch information
gouthamp-stellar committed Oct 4, 2024
1 parent fe6726c commit 5afd909
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions internal/tss/channels/error_jitter_channel.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,14 @@ func (p *errorJitterPool) Receive(payload tss.Payload) {
time.Sleep(jitter(time.Duration(currentBackoff)) * time.Millisecond)
rpcSendResp, err := p.TxManager.BuildAndSubmitTransaction(ctx, ErrorJitterChannelName, payload)
if err != nil {
log.Errorf("%s: unable to sign and submit transaction: %e", ErrorJitterChannelName, err)
log.Errorf("%s: unable to sign and submit transaction: %v", ErrorJitterChannelName, err)
return
}
payload.RpcSubmitTxResponse = rpcSendResp
if !slices.Contains(tss.JitterErrorCodes, rpcSendResp.Code.TxResultCode) {
err = p.Router.Route(payload)
if err != nil {
log.Errorf("%s: unable to route payload: %e", ErrorJitterChannelName, err)
log.Errorf("%s: unable to route payload: %v", ErrorJitterChannelName, err)
return
}
return
Expand All @@ -83,7 +83,7 @@ func (p *errorJitterPool) Receive(payload tss.Payload) {
log.Infof("%s: max retry limit reached", ErrorJitterChannelName)
err := p.Router.Route(payload)
if err != nil {
log.Errorf("%s: unable to route payload: %e", ErrorJitterChannelName, err)
log.Errorf("%s: unable to route payload: %v", ErrorJitterChannelName, err)
}

}
Expand Down
6 changes: 3 additions & 3 deletions internal/tss/channels/error_non_jitter_channel.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,14 @@ func (p *errorNonJitterPool) Receive(payload tss.Payload) {
time.Sleep(time.Duration(p.WaitBtwnRetriesMS) * time.Millisecond)
rpcSendResp, err := p.TxManager.BuildAndSubmitTransaction(ctx, ErrorNonJitterChannelName, payload)
if err != nil {
log.Errorf("%s: unable to sign and submit transaction: %e", ErrorNonJitterChannelName, err)
log.Errorf("%s: unable to sign and submit transaction: %v", ErrorNonJitterChannelName, err)
return
}
payload.RpcSubmitTxResponse = rpcSendResp
if !slices.Contains(tss.NonJitterErrorCodes, rpcSendResp.Code.TxResultCode) {
err := p.Router.Route(payload)
if err != nil {
log.Errorf("%s: unable to route payload: %e", ErrorNonJitterChannelName, err)
log.Errorf("%s: unable to route payload: %v", ErrorNonJitterChannelName, err)
return
}
return
Expand All @@ -77,7 +77,7 @@ func (p *errorNonJitterPool) Receive(payload tss.Payload) {
log.Infof("%s: max retry limit reached", ErrorNonJitterChannelName)
err := p.Router.Route(payload)
if err != nil {
log.Errorf("%s: unable to route payload: %e", ErrorNonJitterChannelName, err)
log.Errorf("%s: unable to route payload: %v", ErrorNonJitterChannelName, err)
return
}
}
Expand Down

0 comments on commit 5afd909

Please sign in to comment.