diff options
author | Aram Drevekenin <aram@poor.dev> | 2023-05-16 12:47:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-16 12:47:18 +0200 |
commit | 5fe4d60c220c872c1e77a7ddf24fec6686c28e95 (patch) | |
tree | b6abec3006de7cd2eaecee149005d55ee4671a6b /zellij-server/src/logging_pipe.rs | |
parent | 4b7d7c34b72e67168a2ec53b27776047ccddf522 (diff) |
feat(plugins): Plugin workers and strider (#2449)
* mvp of strider fuzzy find
* improve search ui
* various refactoringz
* moar refactoring
* even more refactoring
* tests and more refactoring
* refactor: remove unused stuff
* style(fmt): rustfmt
* debug ci
* debug ci
* correct path for plugin system tests
* fix plugin system ci tests
* remove debugging statements from test
* fix plugin worker persistence
* add test for plugin worker persistence
* style(fmt): rustfmt
* final cleanups
* remove outdated comments
Diffstat (limited to 'zellij-server/src/logging_pipe.rs')
-rw-r--r-- | zellij-server/src/logging_pipe.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/zellij-server/src/logging_pipe.rs b/zellij-server/src/logging_pipe.rs index 6081b283f..4f35db4fb 100644 --- a/zellij-server/src/logging_pipe.rs +++ b/zellij-server/src/logging_pipe.rs @@ -3,6 +3,7 @@ use std::{ io::{Read, Seek, Write}, }; +use crate::plugins::PluginId; use log::{debug, error}; use wasmer_wasi::{WasiFile, WasiFsError}; use zellij_utils::{errors::prelude::*, serde}; @@ -17,11 +18,11 @@ const ZELLIJ_MAX_PIPE_BUFFER_SIZE: usize = 16_384; pub struct LoggingPipe { buffer: VecDeque<u8>, plugin_name: String, - plugin_id: u32, + plugin_id: PluginId, } impl LoggingPipe { - pub fn new(plugin_name: &str, plugin_id: u32) -> LoggingPipe { + pub fn new(plugin_name: &str, plugin_id: PluginId) -> LoggingPipe { LoggingPipe { buffer: VecDeque::new(), plugin_name: String::from(plugin_name), |