From 96da8bd6f5d21244025ecf5f5e86c3b6f65419e1 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Wed, 22 May 2024 08:49:46 -0300 Subject: [PATCH] IncomingEvent.String() --- pool.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pool.go b/pool.go index 16bf112..1b61220 100644 --- a/pool.go +++ b/pool.go @@ -34,6 +34,10 @@ type IncomingEvent struct { Relay *Relay } +func (ie IncomingEvent) String() string { + return fmt.Sprintf("[%s] >> %s", ie.Relay.URL, ie.Event) +} + type PoolOption interface { IsPoolOption() Apply(*SimplePool)