From cd04a21e29cc5713c1932b754d9a8f5c5172f960 Mon Sep 17 00:00:00 2001 From: amaurer Date: Fri, 12 Oct 2018 11:55:31 -0400 Subject: Fixes per converstaion, stats interface to pub --- packages/order-watcher/src/order_watcher/order_watcher.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'packages/order-watcher/src') diff --git a/packages/order-watcher/src/order_watcher/order_watcher.ts b/packages/order-watcher/src/order_watcher/order_watcher.ts index 4401b3f7e..eb37bd617 100644 --- a/packages/order-watcher/src/order_watcher/order_watcher.ts +++ b/packages/order-watcher/src/order_watcher/order_watcher.ts @@ -30,7 +30,7 @@ import { orderHashUtils, OrderStateUtils, } from '@0xproject/order-utils'; -import { AssetProxyId, ExchangeContractErrs, OrderState, SignedOrder } from '@0xproject/types'; +import { AssetProxyId, ExchangeContractErrs, OrderState, SignedOrder, Stats } from '@0xproject/types'; import { errorUtils, intervalUtils } from '@0xproject/utils'; import { BlockParamLiteral, LogEntryEvent, LogWithDecodedArgs, Provider } from 'ethereum-types'; import * as _ from 'lodash'; @@ -57,10 +57,6 @@ interface OrderStateByOrderHash { [orderHash: string]: OrderState; } -export interface Stats { - orderCount: number; -} - const DEFAULT_ORDER_WATCHER_CONFIG: OrderWatcherConfig = { orderExpirationCheckingIntervalMs: 50, eventPollingIntervalMs: 200, @@ -222,7 +218,7 @@ export class OrderWatcher { */ public getStats(): Stats { return { - orderCount : _.size(this._orderByOrderHash), + orderCount: _.size(this._orderByOrderHash), }; } private async _cleanupAsync(): Promise { -- cgit