diff options
| author | Kunal Mohan <kunalmohan99@gmail.com> | 2021-03-19 00:05:24 +0530 |
|---|---|---|
| committer | Kunal Mohan <kunalmohan99@gmail.com> | 2021-05-04 20:47:51 +0530 |
| commit | 2ab18244f718628fa1fc0a41a5c11692944d328c (patch) | |
| tree | c0b5671f28c09fcab0e5e0bf3bb2c4533a9963c2 /src/server | |
| parent | Divide OsApi into ClientOsApi and ServerOsApi and move calls to os thread (diff) | |
| download | sl0ppij-2ab18244f718628fa1fc0a41a5c11692944d328c.tar.gz sl0ppij-2ab18244f718628fa1fc0a41a5c11692944d328c.tar.xz sl0ppij-2ab18244f718628fa1fc0a41a5c11692944d328c.zip | |
fix tests
Diffstat (limited to 'src/server')
| -rw-r--r-- | src/server/mod.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/server/mod.rs b/src/server/mod.rs index 00368904..9ad2cbce 100644 --- a/src/server/mod.rs +++ b/src/server/mod.rs @@ -14,10 +14,12 @@ use std::path::PathBuf; use std::sync::mpsc::channel; use std::thread; -pub fn start_server(opts: CliArgs) -> (thread::JoinHandle<()>, String) { +pub fn start_server( + os_input: Box<dyn ServerOsApi>, + opts: CliArgs, +) -> (thread::JoinHandle<()>, String) { let (send_pty_instructions, receive_pty_instructions): ChannelWithContext<PtyInstruction> = channel(); - let os_input = Box::new(get_server_os_input()); let mut send_pty_instructions = SenderWithContext::new( ErrorContext::new(), SenderType::Sender(send_pty_instructions), |
