-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: clean up flags and configs #146
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - just a few knits
@@ -53,15 +59,15 @@ func TestConfig(useMemory bool) *Cfg { | |||
} | |||
|
|||
func createRedisConfig(eigendaCfg server.Config) server.CLIConfig { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Knit - is eigendaCfg overly verbose?
}, | ||
&cli.DurationFlag{ | ||
Name: StatusQueryTimeoutFlagName, | ||
Usage: "Duration to wait for a blob to finalize after being sent for dispersal. Default is 30 minutes.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Knit - hasn't this value been changed given the recent decrease in bridging frequency?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a good question. Do right now bridging frequency is:
- preprod: 1 min
- testnet: 10 min (still lol... but guessing they'll change it to 3 min also eventually..?)
- mainnet: 3 min
Finalization itself requires waiting for 24 minutes though. So not even sure how 30 minutes was enough.
Feel like the msg in this flag should also reflect whether the WaitForFinalization flag is true or false?
store/precomputed_key/s3/cli.go
Outdated
&cli.StringFlag{ | ||
Name: BucketFlagName, | ||
Usage: "bucket name for S3 storage", | ||
EnvVars: withEnvPrefix(envPrefix, "BUCKET"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Knit - we explicitly set value in some locations but not all
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We had a single global flags file that defined flags for every subsystem. It was very hard to know which flag is needed for which, and hard to maintain. Broke it down by moving flags/configs to each respective subsystem package. There's still a lot more cleanup to do, but I feel this is good enough to be reviewed and merged, and iterated on. Hard to get everything write at once.
What I like:
What I don't like: