-
Notifications
You must be signed in to change notification settings - Fork 16
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
misc(syncer): make timeout configurable #155
Comments
Can I work on this issue @vgonkivs? |
Hey, @AryanGodara. Yes, sure you can take it. Thank you 🙂. Yes, the default value for maxAwaitingTime should be 2 seconds. |
Thanks @vgonkivs :D I'll be pushing a PR for this shortly! |
Making a comment here, and this is a broader comment about configuration options in celestia-node / go-header: Not everything deserves to be a configurable parameter. IMO, it's not worth the additional code to allow something as granular as a context timeout on a head request inside the syncer to be configurable. We should set a good constant and keep to it, and if it proves ineffective, then we bump it or try to figure out why requests are taking so long. We should be a bit more picky about what deserves configurability vs what we can just hardcode. It is unlikely anyone external to the development team will try to configure this param. |
Closing as unplanned |
Agreed. @AryanGodara, I suggest looking at #149 instead |
…ean up `Head` func a bit (#163) This PR renames a poorly named metric from `unrecent_header` to `outdated_head` which is more descriptive / accurate. It also cleans up a bit of the code inside of `sync_head.go`. This PR is meant to override #162 if we agree that the timeout should not be configurable (see [comment](#155 (comment))
We should add additional field to the syncer config struct - maxAwaitingTime that specifies max time for processing
Head
request in case we are getting it from the network. This field should be configurable on the startup.The text was updated successfully, but these errors were encountered: