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

Function newClient

test/unit/request-handler-tests.js:493–503  ·  view source on GitHub ↗
(metadata, lbp)

Source from the content-addressed store, hash-verified

491}
492
493function newClient(metadata, lbp) {
494 const options = defaultOptions();
495 options.logEmitter = utils.noop;
496 options.policies.loadBalancing = lbp || options.policies.loadBalancing;
497 return {
498 profileManager: new ProfileManager(options),
499 options: options,
500 metadata: metadata,
501 metrics: new ClientMetrics()
502 };
503}
504
505/** @extends RetryPolicy */
506function TestRetryPolicy(retryOnRequestError, retryOnUnavailable, retryOnReadTimeout, retryOnWriteTimeout) {

Callers 2

newInstanceFunction · 0.85

Calls 1

defaultOptionsFunction · 0.85

Tested by

no test coverage detected