Move some things to AbstractTransport class

This commit is contained in:
Moishe Lettvin
2024-03-27 12:59:08 -04:00
parent e8a6560ac1
commit 4ce140bf84
4 changed files with 37 additions and 22 deletions

View File

@@ -12,9 +12,10 @@ class SequentialMergePipeline(Pipeline):
self.pipelines = pipelines
async def run_pipeline(self):
for pipeline in self.pipelines:
for idx, pipeline in enumerate(self.pipelines):
while True:
frame = await pipeline.sink.get()
print(idx, frame)
if isinstance(
frame, EndFrame) or isinstance(
frame, EndPipeFrame):