fix: make sure to not double load nodes
All checks were successful
Deploy to GitHub Pages / build_site (push) Successful in 1m51s
All checks were successful
Deploy to GitHub Pages / build_site (push) Successful in 1m51s
This commit is contained in:
parent
d9afec5bf6
commit
431d26783d
@ -49,7 +49,7 @@ export class RemoteNodeRegistry implements NodeRegistry {
|
||||
async load(nodeIds: `${string}/${string}/${string}`[]) {
|
||||
const a = performance.now();
|
||||
|
||||
const nodes = await Promise.all(nodeIds.map(async id => {
|
||||
const nodes = await Promise.all([...new Set(nodeIds).values()].map(async id => {
|
||||
|
||||
if (this.nodes.has(id)) {
|
||||
return this.nodes.get(id)!;
|
||||
|
Loading…
Reference in New Issue
Block a user