mirror of
https://github.com/bitvora/wot-relay.git
synced 2025-06-05 08:52:01 +00:00
Merge pull request #34 from bitvora/dev-profileRefresh
check for tag length before adding
This commit is contained in:
commit
4d97bb361d
4
main.go
4
main.go
@ -265,7 +265,9 @@ func refreshTrustNetwork(relay *khatru.Relay, ctx context.Context) {
|
||||
|
||||
for ev := range pool.SubManyEose(timeout, seedRelays, filters) {
|
||||
for _, contact := range ev.Event.Tags.GetAll([]string{"p"}) {
|
||||
pubkeyFollowerCount[contact[1]]++ // Increment follower count for the pubkey
|
||||
if len(contact) > 1 {
|
||||
pubkeyFollowerCount[contact[1]]++ // Increment follower count for the pubkey
|
||||
}
|
||||
}
|
||||
|
||||
for _, relay := range ev.Event.Tags.GetAll([]string{"r"}) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user