mirror of https://github.com/grpc/grpc-node.git
fix: correct comments
This commit is contained in:
parent
5f271de8c2
commit
821c9ab494
|
@ -51,9 +51,8 @@ export class SubchannelPool {
|
||||||
constructor(private global: boolean) {}
|
constructor(private global: boolean) {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Unrefs all unused subchannels.
|
* Unrefs all unused subchannels and cancels the cleanup task if all
|
||||||
*
|
* subchannels have been unrefed.
|
||||||
* @returns `true` if all subchannels have been unrefed. `false` otherwise.
|
|
||||||
*/
|
*/
|
||||||
unrefUnusedSubchannels(): void {
|
unrefUnusedSubchannels(): void {
|
||||||
let allSubchannelsUnrefed = true;
|
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 {
|
ensureCleanupTask(): void {
|
||||||
if (this.global && this.cleanupTimer === undefined) {
|
if (this.global && this.cleanupTimer === undefined) {
|
||||||
|
|
Loading…
Reference in New Issue