fix: fix pugin code that broke main (#25909)
parent
c672ee8d1f
commit
266e1ff78c
|
@ -147,6 +147,7 @@ impl PluginChannels {
|
|||
rx
|
||||
}
|
||||
|
||||
#[cfg(feature = "system-py")]
|
||||
fn add_schedule_trigger(
|
||||
&mut self,
|
||||
db: String,
|
||||
|
@ -160,6 +161,7 @@ impl PluginChannels {
|
|||
rx
|
||||
}
|
||||
|
||||
#[cfg(feature = "system-py")]
|
||||
fn add_request_trigger(&mut self, path: String) -> mpsc::Receiver<RequestEvent> {
|
||||
let (tx, rx) = mpsc::channel(PLUGIN_EVENT_BUFFER_SIZE);
|
||||
self.request_triggers.insert(path, tx);
|
||||
|
@ -803,15 +805,18 @@ impl WalFileNotifier for ProcessingEngineManagerImpl {
|
|||
}
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub(crate) enum WalEvent {
|
||||
WriteWalContents(Arc<WalContents>),
|
||||
Shutdown(oneshot::Sender<()>),
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub(crate) enum ScheduleEvent {
|
||||
Shutdown(oneshot::Sender<()>),
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub(crate) enum RequestEvent {
|
||||
Request(Request),
|
||||
Shutdown(oneshot::Sender<()>),
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#[cfg(feature = "system-py")]
|
||||
use crate::PluginCode;
|
||||
use crate::{RequestEvent, ScheduleEvent, WalEvent};
|
||||
#[cfg(feature = "system-py")]
|
||||
use crate::{RequestEvent, ScheduleEvent, WalEvent};
|
||||
use data_types::NamespaceName;
|
||||
use hashbrown::HashMap;
|
||||
use influxdb3_catalog::catalog::Catalog;
|
||||
|
@ -757,7 +757,6 @@ pub(crate) fn run_test_schedule_plugin(
|
|||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use data_types::NamespaceName;
|
||||
use hashbrown::HashMap;
|
||||
use influxdb3_catalog::catalog::Catalog;
|
||||
use influxdb3_internal_api::query_executor::UnimplementedQueryExecutor;
|
||||
|
|
Loading…
Reference in New Issue