1use crate::data_directory::nodes_dir;
2use interstice_core::{IntersticeError, Node, NodeId};
3
4pub async fn start(id: NodeId, port: u32) -> Result<(), IntersticeError> {
5 let node = Node::load(&nodes_dir(), id, port).await?;
6 node.start().await?;
7 Ok(())
8}