diff options
Diffstat (limited to 'zoned/src/ws.rs')
-rw-r--r-- | zoned/src/ws.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zoned/src/ws.rs b/zoned/src/ws.rs index 1f5a6fc..9289284 100644 --- a/zoned/src/ws.rs +++ b/zoned/src/ws.rs @@ -13,7 +13,7 @@ use tokio::{ }; use tracing::{instrument, warn}; use wspty::PtyMaster; -use zone_core::{Container, FilterContainer}; +use zone_core::{Container, FilterContainer, Runtime}; use crate::{Error, Result, State}; @@ -48,7 +48,7 @@ pub async fn handler(mut ws_stream: WebSocket, state: Arc<State>) -> Result<()> let (kill_tx, kill_rx) = mpsc::unbounded_channel(); let (tx, rx) = mpsc::channel(1024); - let pty = state.nspawn.attach(container.into(), kill_rx).await?; + let pty = state.nspawn.attach(container, kill_rx).await?; tokio::select! { res = msg_handler(receiver, pty.clone(), tx.clone(), kill_tx) => res, |