-
Notifications
You must be signed in to change notification settings - Fork 80
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
Drop KVStore
type parameter from Node
#244
Merged
tnull
merged 3 commits into
lightningdevkit:main
from
tnull:2024-02-switch-to-dyn-kvstore
Apr 25, 2024
Merged
Drop KVStore
type parameter from Node
#244
tnull
merged 3 commits into
lightningdevkit:main
from
tnull:2024-02-switch-to-dyn-kvstore
Apr 25, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tnull
force-pushed
the
2024-02-switch-to-dyn-kvstore
branch
3 times, most recently
from
February 7, 2024 13:06
3ed2d02
to
53f22d9
Compare
tnull
changed the title
Drop
Drop Feb 7, 2024
KVStore
generic from Node
KVStore
type parameter from Node
tnull
force-pushed
the
2024-02-switch-to-dyn-kvstore
branch
2 times, most recently
from
February 21, 2024 10:53
b80a1be
to
8d1b497
Compare
Merged
tnull
force-pushed
the
2024-02-switch-to-dyn-kvstore
branch
from
March 4, 2024 10:07
8d1b497
to
abd8d1d
Compare
tnull
force-pushed
the
2024-02-switch-to-dyn-kvstore
branch
from
March 4, 2024 14:52
abd8d1d
to
e9cad46
Compare
tnull
force-pushed
the
2024-02-switch-to-dyn-kvstore
branch
from
March 5, 2024 08:47
e9cad46
to
4f4904d
Compare
tnull
force-pushed
the
2024-02-switch-to-dyn-kvstore
branch
2 times, most recently
from
March 8, 2024 07:40
d9e9f2e
to
8508d6c
Compare
Rebased to resolve minor conflicts. |
tnull
force-pushed
the
2024-02-switch-to-dyn-kvstore
branch
from
March 8, 2024 07:56
8508d6c
to
618aab5
Compare
Merged
tnull
force-pushed
the
2024-02-switch-to-dyn-kvstore
branch
from
March 12, 2024 10:02
618aab5
to
42c3644
Compare
tnull
force-pushed
the
2024-02-switch-to-dyn-kvstore
branch
from
March 28, 2024 14:44
42c3644
to
24614de
Compare
tnull
force-pushed
the
2024-02-switch-to-dyn-kvstore
branch
from
April 22, 2024 13:41
24614de
to
d1a33ce
Compare
jkczyz
reviewed
Apr 22, 2024
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.
LGTM
tnull
force-pushed
the
2024-02-switch-to-dyn-kvstore
branch
from
April 23, 2024 07:22
d1a33ce
to
8b1a4c2
Compare
.. switching to `dyn KVStore + Send + Sync`
... now that we don't have any generic to hide, we can just use the `Node` type directly.
.. now that we can.
tnull
force-pushed
the
2024-02-switch-to-dyn-kvstore
branch
from
April 25, 2024 18:03
8b1a4c2
to
c566fd5
Compare
Rebased on main after #243 landed. |
jkczyz
approved these changes
Apr 25, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Based on #243, depends on lightningdevkit/rust-lightning#2883
Previously, LDK Node's main object has a generic trait bound on
KVStore
, i.e.,Node<K: KVStore + Send + Sync + 'static>
. However, this has always been a painful issue as our bindings generator UniFFI doesn't have generic support, so we were required to type-def and expose only a concrete type, i.e.,Node<SqliteStore>
, in bindings. This will now become even more painful and borderline infeasible with the upcoming introduction of theVssStore
alternative.Here we therefore finally drop the generic trait bound, allowing us expose a cleaner
Node
object everywhere.Draft as blocked on upstream for now.