stop debuglogging duplicate "sending" messages, that has confused me absurdly.

This commit is contained in:
fiatjaf 2024-09-26 21:12:19 -03:00
parent 69b97107a9
commit 7503643e80

View File

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