MCPcopy
hub / github.com/bee-queue/bee-queue / makeClient

Method makeClient

lib/queue.js:83–90  ·  view source on GitHub ↗
(clientName, createNew)

Source from the content-addressed store, hash-verified

81 }
82
83 makeClient(clientName, createNew) {
84 return redis.createClient(this.settings.redis, createNew).then((client) => {
85 // This event gets cleaned up and removed in Queue#close for the
86 // primary client if quitCommandClient is disabled.
87 client.on('error', this._emitError);
88 return (this[clientName] = client);
89 });
90 }
91
92 connect() {
93 return new Promise((resolve, reject) => {

Callers 2

getEventPromiseMethod · 0.95
connectMethod · 0.95

Calls 1

onMethod · 0.80

Tested by

no test coverage detected