Skip to content

Commit

Permalink
replace task key with subtask for topology policy
Browse files Browse the repository at this point in the history
  • Loading branch information
eugene-babichenko committed Jan 10, 2020
1 parent 543b2c3 commit be41c1f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion jormungandr/src/network/p2p/topology.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
//!
use crate::{
log::KEY_SUB_TASK,
network::p2p::{Gossips, Id, Node, Policy, PolicyConfig},
settings::start::network::Configuration,
};
Expand Down Expand Up @@ -45,7 +46,10 @@ impl P2pTopology {

pub fn set_policy(&mut self, policy: PolicyConfig) {
let mut topology = self.lock.write().unwrap();
topology.set_policy(Policy::new(policy, self.logger.new(o!("task" => "policy"))));
topology.set_policy(Policy::new(
policy,
self.logger.new(o!(KEY_SUB_TASK => "policy")),
));
}

/// set all the default poldercast modules (Rings, Vicinity and Cyclon)
Expand Down

0 comments on commit be41c1f

Please sign in to comment.