mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-30 04:34:27 +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)]
|
#[derive(Clone)]
|
||||||
pub struct agentService {
|
pub struct agentService {
|
||||||
sandbox: Arc<Mutex<Sandbox>>,
|
sandbox: Arc<Mutex<Sandbox>>,
|
||||||
test: u32,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl agentService {
|
impl agentService {
|
||||||
@ -1063,7 +1062,7 @@ impl protocols::agent_ttrpc::AgentService for agentService {
|
|||||||
_ctx: &ttrpc::TtrpcContext,
|
_ctx: &ttrpc::TtrpcContext,
|
||||||
req: protocols::agent::StartTracingRequest,
|
req: protocols::agent::StartTracingRequest,
|
||||||
) -> ttrpc::Result<Empty> {
|
) -> ttrpc::Result<Empty> {
|
||||||
info!(sl!(), "start_tracing {:?} self.test={}", req, self.test);
|
info!(sl!(), "start_tracing {:?}", req);
|
||||||
Ok(Empty::new())
|
Ok(Empty::new())
|
||||||
}
|
}
|
||||||
fn stop_tracing(
|
fn stop_tracing(
|
||||||
@ -1498,10 +1497,8 @@ fn find_process<'a>(
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn start(s: Arc<Mutex<Sandbox>>, server_address: &str) -> ttrpc::Server {
|
pub fn start(s: Arc<Mutex<Sandbox>>, server_address: &str) -> ttrpc::Server {
|
||||||
let agent_service = Box::new(agentService {
|
let agent_service = Box::new(agentService { sandbox: s })
|
||||||
sandbox: s,
|
as Box<dyn protocols::agent_ttrpc::AgentService + Send + Sync>;
|
||||||
test: 1,
|
|
||||||
}) as Box<dyn protocols::agent_ttrpc::AgentService + Send + Sync>;
|
|
||||||
|
|
||||||
let agent_worker = Arc::new(agent_service);
|
let agent_worker = Arc::new(agent_service);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user