mirror of
https://github.com/danog/amp.git
synced 2024-12-03 09:57:51 +01:00
Don't re-wrap stream
This commit is contained in:
parent
6283d9bbb7
commit
1b4863b7b3
@ -60,7 +60,7 @@ final class AsyncGenerator implements Stream
|
||||
*/
|
||||
public function transform(): TransformationStream
|
||||
{
|
||||
return new TransformationStream($this);
|
||||
return $this->generator->transform();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -51,6 +51,6 @@ class AutoDisposingStream implements Stream
|
||||
*/
|
||||
public function transform(): TransformationStream
|
||||
{
|
||||
return new TransformationStream($this);
|
||||
return $this->stream->transform();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user