Fix potential error handling bug due to missing EventEmitter.call(this) in EventStoreNodeConnection and EventStoreConnectionLogicHandler
This commit is contained in:
parent
bf89354564
commit
a2aab715ed
|
@ -43,6 +43,7 @@ const EmptyGuid = '00000000-0000-0000-0000-000000000000';
|
|||
* @property {Number} totalOperationCount
|
||||
*/
|
||||
function EventStoreConnectionLogicHandler(esConnection, settings) {
|
||||
EventEmitter.call(this);
|
||||
this._esConnection = esConnection;
|
||||
this._settings = settings;
|
||||
this._queue = new SimpleQueuedHandler();
|
||||
|
|
|
@ -37,6 +37,7 @@ const MaxReadSize = 4096;
|
|||
* @constructor
|
||||
*/
|
||||
function EventStoreNodeConnection(settings, clusterSettings, endpointDiscoverer, connectionName) {
|
||||
EventEmitter.call(this);
|
||||
this._connectionName = connectionName || ['ES-', uuid.v4()].join('');
|
||||
this._settings = settings;
|
||||
this._clusterSettings = clusterSettings;
|
||||
|
|
Loading…
Reference in New Issue
Block a user