-
Notifications
You must be signed in to change notification settings - Fork 454
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
Add flag to disable DAS chunked stores #2796
base: master
Are you sure you want to change the base?
Conversation
@@ -92,6 +92,7 @@ type ClientStoreConfig struct { | |||
SigningWallet string `koanf:"signing-wallet"` | |||
SigningWalletPassword string `koanf:"signing-wallet-password"` | |||
MaxStoreChunkBodySize int `koanf:"max-store-chunk-body-size"` | |||
DisableChunkedStore bool `koanf:"disable-chunked-store"` |
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.
I believe there is a movement to avoid boolean flags with a negative assertion. I would rename it to EnableChunkedStore
and set the default to true.
@@ -83,6 +89,11 @@ func (c *DASRPCClient) Store(ctx context.Context, message []byte, timeout uint64 | |||
rpcClientStoreDurationHistogram.Update(time.Since(start).Nanoseconds()) | |||
}() | |||
|
|||
if c.disableChunkedStore { | |||
log.Info("Legacy store is being force-used by the DAS client", "url", c.url) |
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.
Does it make sense to set this log as info? I fear that this will flood the logs.
This PR adds a config option-
use-legacy-store
that forces the das rpc clients to usedas_store
(legacy) instead ofdas_startChunkedStore
.Resolves NIT-2949