Skip to content

Commit

Permalink
Usercount updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ericvolp12 committed Nov 6, 2024
1 parent 7b5857a commit d055340
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions pkg/usercount/usercount.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,12 @@ func NewUserCount(ctx context.Context, redisClient *redis.Client) *UserCount {
pds := NewPDS(host, 25)
_, err := fmt.Sscanf(pdsString, "%d|%d|%s", &pds.UserCount, &pds.LastPageSize, &pds.LastCursor)
if err != nil {
log.Printf("error parsing pds string: %s\n", err)
continue
_, err := fmt.Sscanf(pdsString, "%d|%d|", &pds.UserCount, &pds.LastPageSize)
if err != nil {
log.Printf("error parsing pds string: %s\n", err)
continue
}
pds.LastCursor = ""
}
pdsSlice = append(pdsSlice, pds)
}
Expand Down Expand Up @@ -112,6 +116,16 @@ var PDSHostList = []string{
"https://shaggymane.us-west.host.bsky.network",
"https://stinkhorn.us-west.host.bsky.network",
"https://witchesbutter.us-west.host.bsky.network",
"https://earthstar.us-east.host.bsky.network",
"https://meadow.us-east.host.bsky.network",
"https://parasol.us-east.host.bsky.network",
"https://reishi.us-east.host.bsky.network",
"https://scarletina.us-east.host.bsky.network",
"https://splitgill.us-east.host.bsky.network",
"https://truffle.us-east.host.bsky.network",
"https://velvetfoot.us-east.host.bsky.network",
"https://helvella.us-east.host.bsky.network",
"https://panthercap.us-east.host.bsky.network",
}

type PDS struct {
Expand Down

0 comments on commit d055340

Please sign in to comment.