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