fix pinging relays: use the main relay context, not the relay connection temporary context.

This commit is contained in:
fiatjaf
2025-01-17 14:08:54 -03:00
parent 06a15fdaab
commit 3e1c0ddc7e
3 changed files with 10 additions and 7 deletions

View File

@@ -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}
}
}()