mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-08-30 15:52:03 +02:00
improve debug logging, fix stringer interface, debuglog events sent, fix debuglogging affecting the actual values.
This commit is contained in:
2
relay.go
2
relay.go
@@ -300,7 +300,7 @@ func (r *Relay) Publish(ctx context.Context, event Event) (Status, error) {
|
||||
defer r.okCallbacks.Delete(event.ID)
|
||||
|
||||
// publish event
|
||||
message := []interface{}{"EVENT", event}
|
||||
message := []any{"EVENT", event}
|
||||
debugLog("{%s} sending %v\n", r.URL, message)
|
||||
if err := r.Connection.WriteJSON(message); err != nil {
|
||||
return status, err
|
||||
|
Reference in New Issue
Block a user