mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-28 19:54:35 +00:00
main: Remove commented out and redundant code
Remove confusing commented out code and some stray testing code. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
This commit is contained in:
parent
1b2fe4a5be
commit
d5fbba3b0a
@ -246,12 +246,6 @@ fn start_sandbox(logger: &Logger, config: &agentConfig) -> Result<()> {
|
||||
//vsock:///dev/vsock, port
|
||||
let mut server = rpc::start(sandbox.clone(), VSOCK_ADDR, VSOCK_PORT);
|
||||
|
||||
/*
|
||||
let _ = fs::remove_file("/tmp/testagent");
|
||||
let _ = fs::remove_dir_all("/run/agent");
|
||||
let mut server = grpc::start(sandbox.clone(), "unix:///tmp/testagent", 1);
|
||||
*/
|
||||
|
||||
let handle = thread::spawn(move || {
|
||||
// info!("Press ENTER to exit...");
|
||||
// let _ = io::stdin().read(&mut [0]).unwrap();
|
||||
@ -259,10 +253,6 @@ fn start_sandbox(logger: &Logger, config: &agentConfig) -> Result<()> {
|
||||
|
||||
let _ = rx.recv().unwrap();
|
||||
});
|
||||
// receive something from destroy_sandbox here?
|
||||
// or in the thread above? It depneds whether grpc request
|
||||
// are run in another thread or in the main thead?
|
||||
// let _ = rx.wait();
|
||||
|
||||
let _ = server.start().unwrap();
|
||||
|
||||
@ -274,8 +264,6 @@ fn start_sandbox(logger: &Logger, config: &agentConfig) -> Result<()> {
|
||||
shell_handle.join().unwrap();
|
||||
}
|
||||
|
||||
let _ = fs::remove_file("/tmp/testagent");
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user