From ad1a04c9ac604671653048b3ae9a644ea6fd7436 Mon Sep 17 00:00:00 2001 From: Bob Stasyszyn Date: Thu, 13 Jul 2023 11:31:51 -0400 Subject: [PATCH] fix: Invalid error in param validation Signed-off-by: Bob Stasyszyn --- cmd/orb-server/startcmd/params.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/orb-server/startcmd/params.go b/cmd/orb-server/startcmd/params.go index b2c63522..42fe96c6 100644 --- a/cmd/orb-server/startcmd/params.go +++ b/cmd/orb-server/startcmd/params.go @@ -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