Hide the abnormal output when the worker exited (#5924)

This commit is contained in:
Deeka Wong 2023-07-11 08:58:15 +08:00 committed by GitHub
parent 64ee18be50
commit de77989564
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -6,6 +6,10 @@
- [#5923](https://github.com/hyperf/hyperf/pull/5923) Fixed bug that `nacos grpc client` cannot be closed friendly when worker exit. - [#5923](https://github.com/hyperf/hyperf/pull/5923) Fixed bug that `nacos grpc client` cannot be closed friendly when worker exit.
- [#5922](https://github.com/hyperf/hyperf/pull/5922) Fixed bug that `ApplicationContext` cannot be found when using `grpc-client`. - [#5922](https://github.com/hyperf/hyperf/pull/5922) Fixed bug that `ApplicationContext` cannot be found when using `grpc-client`.
## Optimized
- [#5924](https://github.com/hyperf/hyperf/pull/5924) Hide the abnormal output when the worker exited.
# v3.0.28 - 2023-07-08 # v3.0.28 - 2023-07-08
## Fixed ## Fixed

View File

@ -201,8 +201,10 @@ class Client implements ClientInterface
$this->channels[$response->getStreamId()]?->push($response); $this->channels[$response->getStreamId()]?->push($response);
} }
} }
} catch (Throwable $e) {
isset($this->client) && throw $e;
} finally { } finally {
isset($client) && $this->close(); isset($this->client) && $this->close();
} }
}); });