Skip to content

Commit

Permalink
fix: Invalid error in param validation
Browse files Browse the repository at this point in the history
Signed-off-by: Bob Stasyszyn <[email protected]>
  • Loading branch information
bstasyszyn committed Jul 13, 2023
1 parent 11d34ec commit ad1a04c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/orb-server/startcmd/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -2309,7 +2309,7 @@ func getAnchorSyncParameters(cmd *cobra.Command) (syncPeriod, acceleratedSyncPer
maxActivities, err = cmdutil.GetInt(cmd, anchorSyncMaxActivitiesFlagName, anchorSyncMaxActivitiesEnvKey,
defaultAnchorSyncMaxActivities)
if err != nil {
return 0, 0, 0, 0, fmt.Errorf("%s: %w", anchorSyncMinActivityAgeFlagName, err)
return 0, 0, 0, 0, fmt.Errorf("%s: %w", anchorSyncMaxActivitiesFlagName, err)
}

return syncPeriod, acceleratedSyncPeriod, minActivityAge, maxActivities, nil
Expand Down

0 comments on commit ad1a04c

Please sign in to comment.