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

Method decreaseVersion

lib/connection.js:329–334  ·  view source on GitHub ↗

@param {Number} lowerVersion

(lowerVersion)

Source from the content-addressed store, hash-verified

327
328 /** @param {Number} lowerVersion */
329 decreaseVersion(lowerVersion) {
330 // The response already has the max protocol version supported by the Cassandra host.
331 this.protocolVersion = lowerVersion;
332 this.encoder.setProtocolVersion(lowerVersion);
333 this._streamIds.setVersion(lowerVersion);
334 }
335
336 /**
337 * Handle socket errors, if the socket is not readable invoke all pending callbacks

Callers 2

_refreshHostsMethod · 0.80
startupMethod · 0.80

Calls 2

setProtocolVersionMethod · 0.80
setVersionMethod · 0.80

Tested by

no test coverage detected