Skip to content
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

lnd: fix regression in DB open time logs #4309

Merged
merged 1 commit into from
May 26, 2020

Conversation

Roasbeef
Copy link
Member

In this commit, we fix a regression in our DB open time logging that was
introduced in #4015. Obtaining the target backend from the configuration
will actually also open the database, so we need to include that in the time
delta as well.

In this commit, we fix a regression in our DB open time logging that was
introduced in lightningnetwork#4015. Obtaining the target backend from the configuration
will actually also open the database, so we need to include that in the time
delta as well.
@Roasbeef Roasbeef added the v0.11 label May 22, 2020
@Roasbeef Roasbeef mentioned this pull request May 22, 2020
7 tasks
@githorray
Copy link
Contributor

Tested, working great. Back to seconds instead of milliseconds. ;-)

[INF] LTND: Database now open (time_to_open=14.502311427s)!

@bhandras bhandras self-requested a review May 23, 2020 07:04
@@ -260,7 +261,6 @@ func Main(cfg *Config, lisCfg ListenerCfg, shutdownChan <-chan struct{}) error {

// Open the channeldb, which is dedicated to storing channel, and
// network related metadata.
startOpenTime := time.Now()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for this and Thanks! 🙇

@Roasbeef Roasbeef merged commit d32c7a4 into lightningnetwork:master May 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants