Skip to content

Stop passing InitFeatures in msg handlers - #1959

Merged
TheBlueMatt merged 1 commit into
lightningdevkit:mainfrom
danielgranhao:stop-passing-init-features-in-msg-handlers
Jan 17, 2023
Merged

TheBlueMatt merged 1 commit into
lightningdevkit:mainfrom
danielgranhao:stop-passing-init-features-in-msg-handlers

Conversation

@danielgranhao

Copy link
Copy Markdown
Contributor

Addresses #1954

@danielgranhao
danielgranhao force-pushed the stop-passing-init-features-in-msg-handlers branch from f1cd0d4 to bcf1740 Compare January 16, 2023 21:19
return Ok(None);
}

let their_features = peer_lock.their_features.clone();

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Nice! Dropping a full vec clone per message handled.

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.

3 participants