Page MenuHomePhabricator

[lib] Don't fetch the same ENS names simultaneously
ClosedPublic

Authored by ashoat on Jan 28 2023, 8:05 AM.
Tags
None
Referenced Files
Unknown Object (File)
Nov 1 2024, 1:57 PM
Unknown Object (File)
Nov 1 2024, 1:57 PM
Unknown Object (File)
Nov 1 2024, 1:54 PM
Unknown Object (File)
Nov 1 2024, 1:30 PM
Unknown Object (File)
Oct 29 2024, 7:54 PM
Unknown Object (File)
Oct 29 2024, 7:54 PM
Unknown Object (File)
Oct 29 2024, 7:54 PM
Unknown Object (File)
Oct 29 2024, 7:51 PM
Subscribers

Details

Summary

Sometimes when some interfaces load, there will be multiple places where the same ENS name needs to be fetched. Currently, that results in multiple queries for the same ENS name.

This diff makes sure we don't query for the same ENS name simultaneously.

Depends on D6430

Test Plan

cd lib && ALCHEMY_API_KEY=... yarn test utils/ens-cache.test.js

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable