mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-08-25 21:21:57 +02:00
fix pinging relays: use the main relay context, not the relay connection temporary context.
This commit is contained in:
@@ -55,12 +55,10 @@ func TestFollowListRecursion(t *testing.T) {
|
||||
results := make(chan result)
|
||||
go func() {
|
||||
for _, item := range followList.Items {
|
||||
go func() {
|
||||
fl := sys.FetchFollowList(ctx, item.Pubkey)
|
||||
meta := sys.FetchProfileMetadata(ctx, item.Pubkey)
|
||||
fmt.Println(" ~", item.Pubkey, meta.Name, len(fl.Items))
|
||||
results <- result{item.Pubkey, fl, meta}
|
||||
}()
|
||||
fl := sys.FetchFollowList(ctx, item.Pubkey)
|
||||
meta := sys.FetchProfileMetadata(ctx, item.Pubkey)
|
||||
fmt.Println(" ~", item.Pubkey, meta.Name, len(fl.Items))
|
||||
results <- result{item.Pubkey, fl, meta}
|
||||
}
|
||||
}()
|
||||
|
||||
|
Reference in New Issue
Block a user