From 697926641ff2996e561811f077f0f51afb543484 Mon Sep 17 00:00:00 2001 From: Fabio Berger Date: Fri, 10 Nov 2017 17:47:30 -0500 Subject: Rename method since it's not more then just mempool --- src/order_watcher/event_watcher.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/order_watcher/event_watcher.ts') diff --git a/src/order_watcher/event_watcher.ts b/src/order_watcher/event_watcher.ts index 2a1b6dacf..0174288cc 100644 --- a/src/order_watcher/event_watcher.ts +++ b/src/order_watcher/event_watcher.ts @@ -26,7 +26,7 @@ export class EventWatcher { assert.isFunction('callback', callback); this._callbackIfExistsAsync = callback; this._intervalIdIfExists = intervalUtils.setAsyncExcludingInterval( - this._pollForMempoolEventsAsync.bind(this), this._pollingIntervalMs, + this._pollForBlockchainEventsAsync.bind(this), this._pollingIntervalMs, ); } public unsubscribe(): void { @@ -36,7 +36,7 @@ export class EventWatcher { intervalUtils.clearAsyncExcludingInterval(this._intervalIdIfExists); } } - private async _pollForMempoolEventsAsync(): Promise { + private async _pollForBlockchainEventsAsync(): Promise { const pendingEvents = await this._getEventsAsync(); if (pendingEvents.length === 0) { // HACK: Sometimes when node rebuilds the pending block we get back the empty result. -- cgit