mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-11-29 18:27:44 +08:00
Fixed memory leak when using pipeline sometimes. (#3087)
* Fixed pipeline memory leak some times. * Update CHANGELOG-2.0.md
This commit is contained in:
parent
c8912644e5
commit
51f4c5e96b
@ -3,6 +3,7 @@
|
||||
## Fixed
|
||||
|
||||
- [#3047](https://github.com/hyperf/hyperf/pull/3047) Fixed bug that renew sid in all namespaces failed.
|
||||
- [#3087](https://github.com/hyperf/hyperf/pull/3087) Fixed memory leak when using pipeline sometimes.
|
||||
|
||||
# v2.0.25 - 2020-12-28
|
||||
|
||||
|
@ -100,7 +100,7 @@ class Pipeline
|
||||
*/
|
||||
protected function prepareDestination(Closure $destination): Closure
|
||||
{
|
||||
return function ($passable) use ($destination) {
|
||||
return static function ($passable) use ($destination) {
|
||||
return $destination($passable);
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user