#![allow(
clippy::needless_pass_by_value,
clippy::unnecessary_wraps,
clippy::unused_self
)]
use std::time::Duration;
use crate::{Config, Event, PostHogSink};
#[derive(thiserror::Error, Debug)]
pub enum PipelineError {
#[error(transparent)]
Io(#[from] std::io::Error),
#[error(transparent)]
Serde(#[from] serde_json::Error),
}
#[derive(Debug)]
pub struct Pipeline {}
impl Pipeline {
pub fn new(
_config: &Config,
_tick: Duration,
_sink: PostHogSink,
) -> Result<Option<Self>, PipelineError> {
Ok(None)
}
pub fn record(&self, _event: Event) {}
}