mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-12 17:41:22 +00:00
Stack allocated PeerId (#1874)
* Stack allocate PeerId. * Update stuff. * Upgrade rusttls to fix build. * Remove unnecessary manual implementations. * Remove PeerId::into_bytes. * Remove bytes dependency. * Perform some cleanup. * Use Into<kbucket::Key<K>>. * Update versions and changelogs. * Fix PR link. * Fix benchmarks. Co-authored-by: Roman S. Borschel <roman@parity.io>
This commit is contained in:
@ -1100,7 +1100,7 @@ impl Gossipsub {
|
||||
|
||||
let signature = {
|
||||
let message = rpc_proto::Message {
|
||||
from: Some(author.clone().into_bytes()),
|
||||
from: Some(author.clone().to_bytes()),
|
||||
data: Some(data.clone()),
|
||||
seqno: Some(sequence_number.to_be_bytes().to_vec()),
|
||||
topic_ids: topics.clone().into_iter().map(|t| t.into()).collect(),
|
||||
|
Reference in New Issue
Block a user