nip60: Processed is also a function now.

This commit is contained in:
fiatjaf
2025-01-30 16:07:20 -03:00
parent b86d5d52bb
commit 14c4101a03
3 changed files with 26 additions and 40 deletions

View File

@@ -57,24 +57,6 @@ func TestWalletTransfer(t *testing.T) {
pool.PublishMany(ctx, testRelays, event)
}
// handle events from both stashes
go func() {
for {
select {
case err := <-stash1.Processed:
if err != nil {
t.Errorf("stash1 processing error: %v", err)
}
case err := <-stash2.Processed:
if err != nil {
t.Errorf("stash2 processing error: %v", err)
}
case <-ctx.Done():
return
}
}
}()
// wait for initial load
select {
case <-stash1.Stable: