nip19: helper for building nevent from RelayEvent.

This commit is contained in:
fiatjaf
2025-02-07 18:01:59 -03:00
parent 1b31dd892e
commit f19efb4013
3 changed files with 39 additions and 33 deletions

View File

@@ -46,9 +46,7 @@ type RelayEvent struct {
Relay *Relay
}
func (ie RelayEvent) String() string {
return fmt.Sprintf("[%s] >> %s", ie.Relay.URL, ie.Event)
}
func (ie RelayEvent) String() string { return fmt.Sprintf("[%s] >> %s", ie.Relay.URL, ie.Event) }
type PoolOption interface {
ApplyPoolOption(*SimplePool)