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

Clean up DB columns related to push_component/pop_component #11037

Open
saketh-are opened this issue Apr 11, 2024 · 0 comments
Open

Clean up DB columns related to push_component/pop_component #11037

saketh-are opened this issue Apr 11, 2024 · 0 comments
Assignees

Comments

@saketh-are
Copy link
Collaborator

After #11018 we can deprecate DBCol PeerComponent, ComponentEdges, and LastComponentNonce:

pub(super) struct PeerComponent;
impl Column for PeerComponent {
const COL: DBCol = DBCol::PeerComponent;
type Key = Borsh<PeerId>;
type Value = Borsh<u64>;
}
pub(super) struct ComponentEdges;
impl Column for ComponentEdges {
const COL: DBCol = DBCol::ComponentEdges;
type Key = U64LE;
type Value = Vec<EdgeRepr>;
}
pub(super) struct LastComponentNonce;
impl Column for LastComponentNonce {
const COL: DBCol = DBCol::LastComponentNonce;
type Key = Borsh<()>;
type Value = Borsh<u64>;
}

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

No branches or pull requests

1 participant