From 821c9ab494a13be8102e7c1e5ed730dc44332e6f Mon Sep 17 00:00:00 2001 From: Joram Date: Wed, 6 Nov 2019 15:45:15 +0100 Subject: [PATCH] fix: correct comments --- packages/grpc-js/src/subchannel-pool.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/grpc-js/src/subchannel-pool.ts b/packages/grpc-js/src/subchannel-pool.ts index 68ebbbe59..bbc3f1ccf 100644 --- a/packages/grpc-js/src/subchannel-pool.ts +++ b/packages/grpc-js/src/subchannel-pool.ts @@ -51,9 +51,8 @@ export class SubchannelPool { constructor(private global: boolean) {} /** - * Unrefs all unused subchannels. - * - * @returns `true` if all subchannels have been unrefed. `false` otherwise. + * Unrefs all unused subchannels and cancels the cleanup task if all + * subchannels have been unrefed. */ unrefUnusedSubchannels(): void { let allSubchannelsUnrefed = true; @@ -93,7 +92,7 @@ export class SubchannelPool { } /** - * Ensure that the cleanup task is spawned. + * Ensures that the cleanup task is spawned. */ ensureCleanupTask(): void { if (this.global && this.cleanupTimer === undefined) {