mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-28 09:11:34 +00:00
protocols/kad: Populate the key field to fix go-libp2p interop (#2309)
populate the `key` field when converting `kadrequestmsg::putvalue` to `proto::message`. Co-authored-by: Max Inden <mail@max-inden.de>
This commit is contained in:
@ -378,6 +378,7 @@ fn req_msg_to_proto(kad_msg: KadRequestMsg) -> proto::Message {
|
||||
},
|
||||
KadRequestMsg::PutValue { record } => proto::Message {
|
||||
r#type: proto::message::MessageType::PutValue as i32,
|
||||
key: record.key.to_vec(),
|
||||
record: Some(record_to_proto(record)),
|
||||
..proto::Message::default()
|
||||
},
|
||||
|
Reference in New Issue
Block a user