-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
polygon: Apply RoTx limit #11963
polygon: Apply RoTx limit #11963
Conversation
if err != nil { | ||
return nil, nil, nil, nil, nil, nil, nil, ff, nil, nil, err | ||
} | ||
|
||
heimdallReader, err = heimdall.AssembleReader(ctx, cc.Bor.CalculateSprintNumber, cfg.DataDir, cfg.Dirs.Tmp, logger) | ||
heimdallReader, err = heimdall.AssembleReader(ctx, cc.Bor.CalculateSprintNumber, cfg.DataDir, cfg.Dirs.Tmp, logger, roTxLimit) |
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.
Would it be possible to combine cfg.DataDir, cfg.Dirs.Tmp, logger
and roTxLimit
to a DBConfig
struct to avoid adding yet another parameter?
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.
yes, I agree with Elton, I actually raised the same thing in a previous PR - #11924 (comment)
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 even suggest we have separate config structs per component like
heimdall.ReaderConfig
andbridge.ReaderConfig
heimdall.ServiceConfig
andbridge.ServiceConfig
- etc.
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.
to keep this productive though, maybe this PR can be merged and these improvements can be done in a follow up?
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.
ok, I'm approving and leaving it up to Shoham.
Fixes #11899