Skip to content

Commit

Permalink
fix: correct comments
Browse files Browse the repository at this point in the history
  • Loading branch information
JrSchild committed Nov 6, 2019
1 parent 5f271de commit 821c9ab
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/grpc-js/src/subchannel-pool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 821c9ab

Please sign in to comment.