aboutsummaryrefslogtreecommitdiffstats
path: root/src/server
diff options
context:
space:
mode:
authorKunal Mohan <kunalmohan99@gmail.com>2021-03-20 01:18:09 +0530
committerKunal Mohan <kunalmohan99@gmail.com>2021-05-04 20:47:51 +0530
commitbe060e9a138b1d38cc4476a24cec51fde00c7076 (patch)
tree1fa36686f02d8b073f52cd1716d44df29c133d4c /src/server
parentfix tests (diff)
downloadsl0ppij-be060e9a138b1d38cc4476a24cec51fde00c7076.tar.gz
sl0ppij-be060e9a138b1d38cc4476a24cec51fde00c7076.tar.xz
sl0ppij-be060e9a138b1d38cc4476a24cec51fde00c7076.zip
Introduce ServerContext
Diffstat (limited to 'src/server')
-rw-r--r--src/server/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/mod.rs b/src/server/mod.rs
index 9ad2cbce..b1318061 100644
--- a/src/server/mod.rs
+++ b/src/server/mod.rs
@@ -3,8 +3,8 @@ use crate::common::{
ChannelWithContext, ClientInstruction, IpcSenderWithContext, SenderType, SenderWithContext,
ServerInstruction,
};
-use crate::errors::{ContextType, ErrorContext, OsContext, PtyContext};
-use crate::os_input_output::{get_server_os_input, ServerOsApi, ServerOsApiInstruction};
+use crate::errors::{ContextType, ErrorContext, OsContext, PtyContext, ServerContext};
+use crate::os_input_output::{ServerOsApi, ServerOsApiInstruction};
use crate::panes::PaneId;
use crate::pty_bus::{PtyBus, PtyInstruction};
use crate::screen::ScreenInstruction;
@@ -161,7 +161,7 @@ pub fn start_server(
move || loop {
let (mut err_ctx, instruction): (ErrorContext, ServerInstruction) =
recv_server_instructions.recv().unwrap();
- err_ctx.add_call(ContextType::IPCServer);
+ err_ctx.add_call(ContextType::IPCServer(ServerContext::from(&instruction)));
send_pty_instructions.update(err_ctx);
send_os_instructions.update(err_ctx);
if send_client_instructions.len() == 1 {