Skip to content

Commit

Permalink
Merge pull request #1588 from bstasyszyn/parambug
Browse files Browse the repository at this point in the history
fix: Invalid error in param validation
  • Loading branch information
bstasyszyn authored Jul 13, 2023
2 parents 11d34ec + ad1a04c commit aa66e27
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 aa66e27

Please sign in to comment.