Commit 51b8704d authored by Serban Iorga's avatar Serban Iorga
Browse files

create new thread for migration

parent bd66800e
use crate::vmm_config::migration::{AcceptMigrationParams, StartMigrationParams};
use std::fmt::{Display, Formatter};
use std::net::{TcpListener, TcpStream};
use std::thread;
/// Errors associated with initiating a migration.
#[derive(Debug)]
......@@ -40,6 +41,10 @@ pub fn start_migration(
let stream =
TcpStream::connect(start_migration_params.destination).map_err(StartMigrationError::Tcp)?;
thread::Builder::new()
.name("fc_migration".to_string())
.spawn(move || {});
Ok(())
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment