From 494d2ca23079ed83bcbf154e2ffb9c064d17ba78 Mon Sep 17 00:00:00 2001 From: Patrick Schork Date: Tue, 19 Mar 2024 13:44:40 -0700 Subject: [PATCH] Remove traffic generator threshold flags --- tools/traffic/Makefile | 2 -- tools/traffic/config.go | 4 ---- tools/traffic/flags/flags.go | 14 -------------- 3 files changed, 20 deletions(-) diff --git a/tools/traffic/Makefile b/tools/traffic/Makefile index 9994ab96da..c9cea11d4b 100644 --- a/tools/traffic/Makefile +++ b/tools/traffic/Makefile @@ -13,7 +13,5 @@ run: build TRAFFIC_GENERATOR_NUM_INSTANCES=1 \ TRAFFIC_GENERATOR_REQUEST_INTERVAL=1s \ TRAFFIC_GENERATOR_DATA_SIZE=1000 \ - TRAFFIC_GENERATOR_ADV_THRESHOLD=80 \ - TRAFFIC_GENERATOR_QUORUM_THRESHOLD=100 \ TRAFFIC_GENERATOR_RANDOMIZE_BLOBS=true \ ./bin/server diff --git a/tools/traffic/config.go b/tools/traffic/config.go index f0d31818a2..d8ccd1e9f9 100644 --- a/tools/traffic/config.go +++ b/tools/traffic/config.go @@ -15,8 +15,6 @@ type Config struct { NumInstances uint RequestInterval time.Duration DataSize uint64 - ConfirmationThreshold uint8 - AdversarialThreshold uint8 LoggingConfig common.LoggerConfig RandomizeBlobs bool InstanceLaunchInterval time.Duration @@ -37,8 +35,6 @@ func NewConfig(ctx *cli.Context) (*Config, error) { NumInstances: ctx.GlobalUint(flags.NumInstancesFlag.Name), RequestInterval: ctx.Duration(flags.RequestIntervalFlag.Name), DataSize: ctx.GlobalUint64(flags.DataSizeFlag.Name), - ConfirmationThreshold: uint8(ctx.GlobalUint(flags.QuorumThresholdFlag.Name)), - AdversarialThreshold: uint8(ctx.GlobalUint(flags.AdversarialThresholdFlag.Name)), LoggingConfig: *loggerConfig, RandomizeBlobs: ctx.GlobalBool(flags.RandomizeBlobsFlag.Name), InstanceLaunchInterval: ctx.Duration(flags.InstanceLaunchIntervalFlag.Name), diff --git a/tools/traffic/flags/flags.go b/tools/traffic/flags/flags.go index 82291e5c8a..e3c9543722 100644 --- a/tools/traffic/flags/flags.go +++ b/tools/traffic/flags/flags.go @@ -53,18 +53,6 @@ var ( Required: true, EnvVar: common.PrefixEnvVar(envPrefix, "DATA_SIZE"), } - AdversarialThresholdFlag = cli.StringFlag{ - Name: common.PrefixFlag(FlagPrefix, "adv-threshold"), - Usage: "Adversarial threshold between 0 and 100", - Required: true, - EnvVar: common.PrefixEnvVar(envPrefix, "ADV_THRESHOLD"), - } - QuorumThresholdFlag = cli.StringFlag{ - Name: common.PrefixFlag(FlagPrefix, "quorum-threshold"), - Usage: "Quorum threshold between 0 and 100", - Required: true, - EnvVar: common.PrefixEnvVar(envPrefix, "QUORUM_THRESHOLD"), - } RandomizeBlobsFlag = cli.BoolFlag{ Name: common.PrefixFlag(FlagPrefix, "randomize-blobs"), Usage: "Whether to randomzie blob data", @@ -92,8 +80,6 @@ var requiredFlags = []cli.Flag{ NumInstancesFlag, RequestIntervalFlag, DataSizeFlag, - AdversarialThresholdFlag, - QuorumThresholdFlag, } var optionalFlags = []cli.Flag{