aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-11-13 04:00:48 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-11-13 09:06:13 +0800
commit22cd6989a0217f2a49e59ce64bcc69b2c238aba4 (patch)
treea1f625cdc1598351afb61e652235ac76cf02c9c7 /src
parenta9ae555b88cc36ff2cbd92fdd37a339702860c01 (diff)
downloaddexon-sol-tools-22cd6989a0217f2a49e59ce64bcc69b2c238aba4.tar
dexon-sol-tools-22cd6989a0217f2a49e59ce64bcc69b2c238aba4.tar.gz
dexon-sol-tools-22cd6989a0217f2a49e59ce64bcc69b2c238aba4.tar.bz2
dexon-sol-tools-22cd6989a0217f2a49e59ce64bcc69b2c238aba4.tar.lz
dexon-sol-tools-22cd6989a0217f2a49e59ce64bcc69b2c238aba4.tar.xz
dexon-sol-tools-22cd6989a0217f2a49e59ce64bcc69b2c238aba4.tar.zst
dexon-sol-tools-22cd6989a0217f2a49e59ce64bcc69b2c238aba4.zip
Add a comment
Diffstat (limited to 'src')
-rw-r--r--src/order_watcher/order_state_watcher.ts2
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