mirror of
https://github.com/grpc/grpc-node.git
synced 2025-12-08 18:23:54 +00:00
Don't query the config selector for calls that have ended
This commit is contained in:
parent
7de0d08e29
commit
e3106b99ca
@ -509,6 +509,11 @@ export class ChannelImplementation implements Channel {
|
||||
}
|
||||
|
||||
private tryGetConfig(stream: Http2CallStream, metadata: Metadata) {
|
||||
if (stream.getStatus() !== null) {
|
||||
/* If the stream has a status, it has already finished and we don't need
|
||||
* to take any more actions on it. */
|
||||
return;
|
||||
}
|
||||
if (this.configSelector === null) {
|
||||
/* This branch will only be taken at the beginning of the channel's life,
|
||||
* before the resolver ever returns a result. So, the
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user