From be41c1f105ce66a5991f4a6c43cbb0ba31e0b463 Mon Sep 17 00:00:00 2001 From: Yevhenii Babichenko Date: Fri, 10 Jan 2020 20:35:03 +0200 Subject: [PATCH] replace task key with subtask for topology policy --- jormungandr/src/network/p2p/topology.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/jormungandr/src/network/p2p/topology.rs b/jormungandr/src/network/p2p/topology.rs index 3e5aaf040d..eb2de0456a 100644 --- a/jormungandr/src/network/p2p/topology.rs +++ b/jormungandr/src/network/p2p/topology.rs @@ -2,6 +2,7 @@ //! use crate::{ + log::KEY_SUB_TASK, network::p2p::{Gossips, Id, Node, Policy, PolicyConfig}, settings::start::network::Configuration, }; @@ -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)