Skip to content

Commit

Permalink
Change one instance of topic.hash to topic.descriptor.name, and set t…
Browse files Browse the repository at this point in the history
…opic.descriptor to public, and file an issue for the name field in TopicDescriptor to set it to public: stepancheg/rust-protobuf#336
  • Loading branch information
jamesray1 committed Sep 17, 2018
1 parent 2a7a48b commit eb21eef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion protocols/floodsub/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ impl FloodSubController {
for (topic, subscribe) in topics {
let mut subscription = rpc_proto::RPC_SubOpts::new();
subscription.set_subscribe(subscribe);
subscription.set_topicid(topic.hash().clone().into_string());
subscription.set_topicid(topic.descriptor.name);
proto.mut_subscriptions().push(subscription);

if subscribe {
Expand Down
2 changes: 1 addition & 1 deletion protocols/floodsub/src/topic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ impl TopicHash {
/// Built topic.
#[derive(Debug, Clone)]
pub struct Topic {
descriptor: rpc_proto::TopicDescriptor,
pub descriptor: rpc_proto::TopicDescriptor,
hash: TopicHash,
}

Expand Down

0 comments on commit eb21eef

Please sign in to comment.