MCPcopy Create free account
hub / github.com/apache/cassandra-nodejs-driver / getIp

Method getIp

lib/utils.js:639–648  ·  view source on GitHub ↗

* Returns resolved ips in a round-robin fashion.

()

Source from the content-addressed store, hash-verified

637 * Returns resolved ips in a round-robin fashion.
638 */
639 getIp() {
640 if (this._isIp) {
641 return this._nameOrIp;
642 }
643
644 const item = this._addresses[this._index % this._addresses.length];
645 this._index = (this._index !== maxInt32) ? (this._index + 1) : 0;
646
647 return item;
648 }
649}
650
651/**

Callers 3

constructorMethod · 0.80
cloud-tests.jsFile · 0.80
utils-tests.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected