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

[Libp2p] Finish generic DHT persistence #2507

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

rob-maron
Copy link
Contributor

@rob-maron rob-maron commented Jan 29, 2025

This PR:

Finishes implementing generic DHT persistence now that HotShot is updated

What to look at:

@rob-maron rob-maron requested a review from imabdulbasit March 4, 2025 14:17
bincode::serialize(&records).with_context(|| "failed to serialize records")?;

// Prepare the statement
let stmt = "UPSERT INTO libp2p_dht (id, serialized_records) VALUES (0, $1)";
Copy link
Contributor

Choose a reason for hiding this comment

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

ah I meant upsert function on transaction.
something like this here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should be fixed now

@rob-maron rob-maron enabled auto-merge (squash) March 6, 2025 15:43
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.

2 participants