Skip to content

Commit

Permalink
chore: add temp pub-sub logs
Browse files Browse the repository at this point in the history
  • Loading branch information
KanievskyiDanylo committed Dec 25, 2024
1 parent 25852c2 commit a4e161b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/pub-sub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,12 @@ export class ExpKeyValuePubSub {
const localValue = this.localCache.get<T>(key);

if (localValue) {
this.logger.info(`Returning from local cache: '${key}'`);
return localValue;
}

this.logger.info(`Returning from external cache: '${key}'`);

const [value, ttl] = await Promise.all([
this.dexHelper.cache.get(this.dexKey, this.network, key),
this.dexHelper.cache.ttl(this.dexKey, this.network, key),
Expand Down

0 comments on commit a4e161b

Please sign in to comment.