Skip to content

Commit

Permalink
simplify error wraps
Browse files Browse the repository at this point in the history
  • Loading branch information
kc1116 committed Jan 13, 2025
1 parent 88aaaaa commit ea95891
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions monitor/loadgen/loadgen.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ type Config struct {
func Start(ctx context.Context, network netconf.Network, ethClients map[uint64]ethclient.Client, cfg Config, rpcEndpoints xchain.RPCEndpoints) error {
err := startSelfDelegation(ctx, network, ethClients, cfg)
if err != nil {
return errors.Wrap(err, "failed to start self delegation loadgen")
return errors.Wrap(err, "start self delegation")
}

err = startXCaller(ctx, network, rpcEndpoints)
if err != nil {
return errors.Wrap(err, "failed to start xcall loadgen")
return errors.Wrap(err, "start xcaller")
}

return nil
Expand Down

0 comments on commit ea95891

Please sign in to comment.