Merge bounded Odin discovery snapshots

This commit is contained in:
Meta Vens 2026-07-12 23:06:44 +01:00
commit 26dd4f2bd4

View file

@ -283,9 +283,13 @@ function createHermodrBridge(options) {
}
async function readCatalog(options) {
const providerSnapshots = [];
for (let attempt = 0; attempt < 3; attempt += 1) {
providerSnapshots.push(...await readOdinProviderAdvertisements(options));
}
const providerAdvertisements = mergeProviderAdvertisements([
...await readOdinSurfaceProviderCatalog(options),
...await readOdinProviderAdvertisements(options),
...providerSnapshots,
]);
return createBrowserCatalog(providerAdvertisements, options);
}