Skip to content
This repository has been archived by the owner on Oct 9, 2024. It is now read-only.

Commit

Permalink
Increase default max-parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanratcliffe committed Sep 22, 2023
1 parent 5414dac commit 2ed9b8a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"net/http"
"os"
"os/signal"
"runtime"
"strings"
"syscall"
"time"
Expand Down Expand Up @@ -189,7 +188,7 @@ func init() {
rootCmd.PersistentFlags().String("nats-name-prefix", "", "A name label prefix. Sources should append a dot and their hostname .{hostname} to this, then set this is the NATS connection name which will be sent to the server on CONNECT to identify the client")
rootCmd.PersistentFlags().String("nats-jwt", "", "The JWT token that should be used to authenticate to NATS, provided in raw format e.g. eyJ0eXAiOiJKV1Q...")
rootCmd.PersistentFlags().String("nats-nkey-seed", "", "The NKey seed which corresponds to the NATS JWT e.g. SUAFK6QUC...")
rootCmd.PersistentFlags().Int("max-parallel", (runtime.NumCPU() * 2), "Max number of requests to run in parallel")
rootCmd.PersistentFlags().Int("max-parallel", 2_000, "Max number of requests to run in parallel")

// ⚠️ Add your own custom config options below, the example "your-custom-flag"
// should be replaced with your own config or deleted
Expand Down

0 comments on commit 2ed9b8a

Please sign in to comment.