Don't query the config selector for calls that have ended

This commit is contained in:
Michael Lumish 2021-05-12 14:38:02 -07:00
parent 7de0d08e29
commit e3106b99ca
1 changed files with 5 additions and 0 deletions

View File

@ -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