mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-29 12:14:48 +00:00
agent: delete unused field in agentService
The code is for test, and not needed now. Signed-off-by: bin liu <bin@hyper.sh>
This commit is contained in:
parent
52b821fa5f
commit
980e48ca94
@ -76,7 +76,6 @@ macro_rules! sl {
|
||||
#[derive(Clone)]
|
||||
pub struct agentService {
|
||||
sandbox: Arc<Mutex<Sandbox>>,
|
||||
test: u32,
|
||||
}
|
||||
|
||||
impl agentService {
|
||||
@ -1063,7 +1062,7 @@ impl protocols::agent_ttrpc::AgentService for agentService {
|
||||
_ctx: &ttrpc::TtrpcContext,
|
||||
req: protocols::agent::StartTracingRequest,
|
||||
) -> ttrpc::Result<Empty> {
|
||||
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<Mutex<Sandbox>>, server_address: &str) -> ttrpc::Server {
|
||||
let agent_service = Box::new(agentService {
|
||||
sandbox: s,
|
||||
test: 1,
|
||||
}) as Box<dyn protocols::agent_ttrpc::AgentService + Send + Sync>;
|
||||
let agent_service = Box::new(agentService { sandbox: s })
|
||||
as Box<dyn protocols::agent_ttrpc::AgentService + Send + Sync>;
|
||||
|
||||
let agent_worker = Arc::new(agent_service);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user