diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-11-13 04:00:48 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-11-13 09:06:13 +0800 |
commit | 22cd6989a0217f2a49e59ce64bcc69b2c238aba4 (patch) | |
tree | a1f625cdc1598351afb61e652235ac76cf02c9c7 | |
parent | a9ae555b88cc36ff2cbd92fdd37a339702860c01 (diff) | |
download | dexon-sol-tools-22cd6989a0217f2a49e59ce64bcc69b2c238aba4.tar.gz dexon-sol-tools-22cd6989a0217f2a49e59ce64bcc69b2c238aba4.tar.zst dexon-sol-tools-22cd6989a0217f2a49e59ce64bcc69b2c238aba4.zip |
Add a comment
-rw-r--r-- | src/order_watcher/order_state_watcher.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/order_watcher/order_state_watcher.ts b/src/order_watcher/order_state_watcher.ts index 0f5b5c30c..ab80f231f 100644 --- a/src/order_watcher/order_state_watcher.ts +++ b/src/order_watcher/order_state_watcher.ts @@ -225,6 +225,8 @@ export class OrderStateWatcher { private async _emitRevalidateOrdersAsync(orderHashes: string[]): Promise<void> { for (const orderHash of orderHashes) { const signedOrder = this._orderByOrderHash[orderHash] as SignedOrder; + // Most of those calls will never reach the network because the data is fetched from stores + // and only updated when cache is invalidated const orderState = await this._orderStateUtils.getOrderStateAsync(signedOrder); if (_.isUndefined(this._callbackIfExistsAsync)) { break; // Unsubscribe was called |