mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-05-12 02:47:15 +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:
parent
06c339c141
commit
7c2253d89d
@ -6,8 +6,11 @@
|
||||
`InboundPutRecordRequest` into `InboundRequest::PutRecord` and `InboundAddProviderRequest` into
|
||||
`InboundRequest::AddProvider` (see [PR 2297]).
|
||||
|
||||
- Populate the `key` field when converting `KadRequestMsg::PutValue` to `proto::Message` (see [PR 2309]).
|
||||
|
||||
[PR 2245]: https://github.com/libp2p/rust-libp2p/pull/2245
|
||||
[PR 2297]: https://github.com/libp2p/rust-libp2p/pull/2297
|
||||
[PR 2309]: https://github.com/libp2p/rust-libp2p/pull/2309
|
||||
|
||||
# 0.32.0-rc.2 [2021-10-15]
|
||||
|
||||
|
@ -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()
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user