Skip to content

Commit

Permalink
update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
leibale committed Oct 14, 2021
1 parent 4b2ad95 commit 83ddbbf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/cluster/cluster-slots.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export default class RedisClusterSlots<M extends RedisModules, S extends RedisSc
}

async #reset(masters: Array<RedisClusterMasterNode>): Promise<void> {
// Override this.#slots and add not existing clients to this.#clientByKey
// Override this.#slots and add not existing clients to this.#nodeByUrl
const promises: Array<Promise<void>> = [],
clientsInUse = new Set<string>();
for (const master of masters) {
Expand All @@ -88,7 +88,7 @@ export default class RedisClusterSlots<M extends RedisModules, S extends RedisSc
}
}

// Remove unused clients from this.#clientBykey using clientsInUse
// Remove unused clients from this.#nodeByUrl using clientsInUse
for (const [url, { client }] of this.#nodeByUrl.entries()) {
if (clientsInUse.has(url)) continue;

Expand Down

0 comments on commit 83ddbbf

Please sign in to comment.