slight improvements to debug logging.

This commit is contained in:
fiatjaf
2023-04-11 07:10:05 -03:00
parent e103c99bb8
commit 4507477486
3 changed files with 9 additions and 5 deletions

View File

@@ -9,7 +9,7 @@ import (
// test if we can connect to wss://relay.damus.io and fetch a couple of random events
func TestSubscribe(t *testing.T) {
rl := mustRelayConnect("wss://relay.damus.io")
defer rl.Close("")
defer rl.Close()
sub, err := rl.Subscribe(context.Background(), Filters{{Kinds: []int{1}, Limit: 2}})
if err != nil {