reset(nodes) {
        debug$f("Reset with %O", nodes);
        const newNodes = {};
        nodes.forEach((node) => {
            const key = util_1$3.getNodeKey(node);
            // Don't override the existing (master) node
            // when the current one is slave.
            if (!(node.readOnly && newNodes[key])) {
                newNodes[key] = node;
            }
        });
        Object.keys(this.nodes.all).forEach((key) => {
            if (!newNodes[key]) {
                debug$f("Disconnect %s because the node does not hold any slot", key);
                this.nodes.all[key].disconnect();
                this.removeNode(key);
            }
        });
        Object.keys(newNodes).forEach((key) => {
            const node = newNodes[key];
            this.findOrCreate(node, node.readOnly);
        });
    }
Reset the pool with a set of nodes.
The old node will be removed.

@param {(Array<string | number | object>)} nodes
@memberof ConnectionPool