Skip to content

Commit fa3f89e

Browse files
committed
fix: website host map
1 parent 6c0ee43 commit fa3f89e

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.changeset/slow-dolls-relax.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'website': patch
3+
---
4+
5+
Fixed an issue where the host map could not refresh its data.

apps/website/content/geoHosts.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,8 @@ export async function getGeoHosts(): Promise<SiaCentralPartialHost[]> {
2828
: -1
2929
)
3030

31-
// // filter hosts to unique locations
32-
// const uniqueHosts = uniqBy(
33-
// hosts,
34-
// (h) => `${h.location[0]},${h.location[1]}`
35-
// )
36-
const uniqueHosts = hosts
31+
// Filter out hosts without location data
32+
const uniqueHosts = hosts.filter((h) => h.location)
3733

3834
// to get a more even distribution, we want to select the top 64 hosts
3935
// where no two hosts are within n degrees of each other.

0 commit comments

Comments
 (0)