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

refactor(sdk): complete generic impl for PersistenceService over N::Primitives #13044

Conversation

lean-apple
Copy link
Contributor

Closes #12941.

@lean-apple lean-apple changed the title Persistence service generic node primitive refactor(sdk): complete generic impl for PersistenceService over N::Primitives Dec 1, 2024
@lean-apple lean-apple marked this pull request as ready for review December 3, 2024 09:45
Rjected
Rjected previously requested changes Dec 3, 2024
Copy link
Member

@Rjected Rjected left a comment

Choose a reason for hiding this comment

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

I just have one question, if we can remove the qualification that would be nice, otherwise this looks good to me

// create the initial channels
let (db_service_tx, db_service_rx) = std::sync::mpsc::channel();

// construct persistence handle
let persistence_handle = Self::new(db_service_tx);
let persistence_handle = PersistenceHandle::<N::Primitives>::new(db_service_tx);
Copy link
Member

Choose a reason for hiding this comment

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

If we do just PersistenceHandle::new here, does it still compile?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, updated.

@lean-apple lean-apple requested a review from gakonst as a code owner December 4, 2024 09:14
@mattsse mattsse added this pull request to the merge queue Dec 4, 2024
Merged via the queue into paradigmxyz:main with commit 025885f Dec 4, 2024
42 checks passed
@lean-apple lean-apple deleted the persistence-service-generic-node-primitive branch December 5, 2024 03:10
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.

Generic node types PersistenceService
3 participants