diff --git a/src/cli/cli.go b/src/cli/cli.go index 8b8cf3b57..b0626910a 100644 --- a/src/cli/cli.go +++ b/src/cli/cli.go @@ -147,9 +147,8 @@ func BuildCommandTree(cmd *cobra.Command) { // Handle builds and executes the cli processor. func Handle() { - tenDays := time.Now().Add(time.Hour * 24 * 10) //nolint:forbidigo - ctx, cancel := context.WithDeadline(context.Background(), tenDays) + ctx, cancel := context.WithTimeout(context.Background(), time.Hour*24*10) defer cancel() ctx = config.Seed(ctx)