Skip to content

Commit

Permalink
fix: website host map
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfreska committed Mar 20, 2024
1 parent 8e57f7e commit b55daf6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/slow-dolls-relax.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'website': patch
---

Fixed an issue where the host map could not refresh its data.
8 changes: 2 additions & 6 deletions apps/website/content/geoHosts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,8 @@ export async function getGeoHosts(): Promise<SiaCentralPartialHost[]> {
: -1
)

// // filter hosts to unique locations
// const uniqueHosts = uniqBy(
// hosts,
// (h) => `${h.location[0]},${h.location[1]}`
// )
const uniqueHosts = hosts
// Filter out hosts without location data
const uniqueHosts = hosts.filter((h) => h.location)

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

0 comments on commit b55daf6

Please sign in to comment.