mirror of
https://github.com/v0l/zap-stream-core.git
synced 2025-06-18 12:27:12 +00:00
Cleanup
This commit is contained in:
@ -12,9 +12,10 @@ impl PipelineRunner {
|
||||
pub async fn push(&mut self, bytes: bytes::Bytes) -> Result<(), anyhow::Error> {
|
||||
let mut output = PipelinePayload::Bytes(bytes);
|
||||
for step in &mut self.steps {
|
||||
let output2 = step.process(output).await?;
|
||||
//info!("{} result: {:?}", step.name(), output2);
|
||||
output = output2;
|
||||
match step.process(output).await? {
|
||||
Some(pkg) => output = pkg,
|
||||
None => break,
|
||||
}
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
Reference in New Issue
Block a user