Skip to content

Commit

Permalink
stop debuglogging duplicate "sending" messages, that has confused me …
Browse files Browse the repository at this point in the history
…absurdly.
  • Loading branch information
fiatjaf committed Sep 27, 2024
1 parent 69b9710 commit 7503643
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions subscription.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ func (sub *Subscription) Close() {
id := sub.GetID()
closeMsg := CloseEnvelope(id)
closeb, _ := (&closeMsg).MarshalJSON()
debugLogf("{%s} sending %v", sub.Relay.URL, closeb)
<-sub.Relay.Write(closeb)
}
}
Expand All @@ -164,7 +163,6 @@ func (sub *Subscription) Fire() error {
} else {
reqb, _ = CountEnvelope{id, sub.Filters, nil}.MarshalJSON()
}
debugLogf("{%s} sending %v", sub.Relay.URL, reqb)

sub.live.Store(true)
if err := <-sub.Relay.Write(reqb); err != nil {
Expand Down

0 comments on commit 7503643

Please sign in to comment.