-
Notifications
You must be signed in to change notification settings - Fork 92
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
config+terminal: allow configuring of lnd RPC timeout #899
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.
Nice! this one I think makes sense to add to release notes since it's a new lit config flag 🙏
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.
Generally LGTM 🚀! Thanks!
Posting 2 questions below that might be worth addressing.
terminal.go
Outdated
@@ -74,6 +74,7 @@ const ( | |||
|
|||
defaultServerTimeout = 10 * time.Second | |||
defaultConnectTimeout = 15 * time.Second | |||
defaultRPCTimeout = 1 * time.Minute |
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.
The actual default timeout used in lndclient
lnd_services.go
is 30 seconds:
https://github.com/lightninglabs/lndclient/blob/d89c44c7ef25fdf72c901876b6961ebee7d0c133/lnd_services.go#L30
Would we like to mimic that in litd
, or would we specifically like to set it to 1 minute in litd
?
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, this is an intentional bump. 30 seconds probably is too low already, especially looking at your other comment. Perhaps we should bump it even more?
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.
Thanks for clarifying!
Perhaps we should bump it even more?
Yeah maybe it'd make sense to bump it to 2 or 3 minutes even. Though I'd be ok with setting this default to 1 minute for now, and adjust it in future if needed. Feel free to set this to whatever you'd prefer of those alternatives :)!
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.
Okay, I bumped it to 3 minutes. Since we'll soon have more involved startup dependencies (lnd
-> tapd
-> lnd
), having more time available to resolve things should help.
fd7a572
to
5ab7d62
Compare
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.
tACK LGTM 🎉! Thanks for the updates 🙏!
terminal.go
Outdated
@@ -74,6 +74,7 @@ const ( | |||
|
|||
defaultServerTimeout = 10 * time.Second | |||
defaultConnectTimeout = 15 * time.Second | |||
defaultRPCTimeout = 1 * time.Minute |
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.
Thanks for clarifying!
Perhaps we should bump it even more?
Yeah maybe it'd make sense to bump it to 2 or 3 minutes even. Though I'd be ok with setting this default to 1 minute for now, and adjust it in future if needed. Feel free to set this to whatever you'd prefer of those alternatives :)!
5ab7d62
to
12b3730
Compare
Allows the RPC timeout for the single
lndclient
instance that's given to all subservers to be configured.Related to lightninglabs/taproot-assets#1177.