mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-04-01 00:18:12 +02:00
fix sdk.
This commit is contained in:
parent
978d7825b5
commit
a0f6dec451
@ -38,12 +38,12 @@ func FetchRelaysForPubkey(ctx context.Context, pool *nostr.SimplePool, pubkey st
|
||||
|
||||
result := make([]Relay, 0, 20)
|
||||
i := 0
|
||||
for event := range ch {
|
||||
switch event.Kind {
|
||||
for ie := range ch {
|
||||
switch ie.Event.Kind {
|
||||
case nostr.KindRelayListMetadata:
|
||||
result = append(result, ParseRelaysFromKind10002(event)...)
|
||||
result = append(result, ParseRelaysFromKind10002(ie.Event)...)
|
||||
case nostr.KindContactList:
|
||||
result = append(result, ParseRelaysFromKind3(event)...)
|
||||
result = append(result, ParseRelaysFromKind3(ie.Event)...)
|
||||
}
|
||||
|
||||
i++
|
||||
|
Loading…
x
Reference in New Issue
Block a user