From 980e48ca9441aa7a95d42878c9d5377002a155a9 Mon Sep 17 00:00:00 2001 From: bin liu Date: Sat, 10 Oct 2020 12:23:44 +0000 Subject: [PATCH] agent: delete unused field in agentService The code is for test, and not needed now. Signed-off-by: bin liu --- src/agent/src/rpc.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/agent/src/rpc.rs b/src/agent/src/rpc.rs index 6ee5c5da42..0e86781dec 100644 --- a/src/agent/src/rpc.rs +++ b/src/agent/src/rpc.rs @@ -76,7 +76,6 @@ macro_rules! sl { #[derive(Clone)] pub struct agentService { sandbox: Arc>, - test: u32, } impl agentService { @@ -1063,7 +1062,7 @@ impl protocols::agent_ttrpc::AgentService for agentService { _ctx: &ttrpc::TtrpcContext, req: protocols::agent::StartTracingRequest, ) -> ttrpc::Result { - info!(sl!(), "start_tracing {:?} self.test={}", req, self.test); + info!(sl!(), "start_tracing {:?}", req); Ok(Empty::new()) } fn stop_tracing( @@ -1498,10 +1497,8 @@ fn find_process<'a>( } pub fn start(s: Arc>, server_address: &str) -> ttrpc::Server { - let agent_service = Box::new(agentService { - sandbox: s, - test: 1, - }) as Box; + let agent_service = Box::new(agentService { sandbox: s }) + as Box; let agent_worker = Arc::new(agent_service);