-
Notifications
You must be signed in to change notification settings - Fork 224
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
chore: get rid of DatabaseSource
workaround
#3781
Conversation
It was needed when we were leaking database referencess, which should no longer be the case. In LN gateway code we should be able to just use an existin `Client` instead of building new one.
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #3781 /- ##
==========================================
Coverage 57.65% 57.71% 0.05%
==========================================
Files 193 193
Lines 42053 42044 -9
==========================================
Hits 24244 24264 20
Misses 17809 17780 -29 ☔ View full report in Codecov by Sentry. |
I'm not entirely sure if LN gateway code had some good reason to build new clients instead of cloning existing ones. @m1sterc001guy @okjodom |
CI is failing |
I think needing to inject lnrpc into the client was the reason? Not sure of it though |
Will debug when I find some energy. |
@okjodom @m1sterc001guy so it looks like this fails because something hangs in lnd gateawy, 99% because of the I tried to debug it but I have trouble understanding the code around it (I created #3807 motivated by it), and I don't have a good pre-existing understanding of the gateway architecture. I don't even undersatnd why the gateway would need multiple client to the same federation, while the code (and my |
dev call: dpc is blocked on this one because some lightning stuff is failing cc @okjodom @m1sterc001guy |
This will hopefully help unblocking fedimint#3781 , and prevent anyone from introducing more places that would depend on it.
This will hopefully help unblocking fedimint#3781 , and prevent anyone from introducing more places that would depend on it.
I think I know the crux of the issue here. Today, we have a number of properties on Ideally, I don't think we should be re-creating the clients at all. We should just create the federation clients when the gateway boots up and never again. So instead of passing the lightning node connection |
Was done in another PR |
It was needed when we were leaking database referencess, which should no longer be the case.
In LN gateway code we should be able to just use an existin
Client
instead of building new one.