String() method for DirectedFilter.
This commit is contained in:
4
pool.go
4
pool.go
@@ -43,6 +43,10 @@ type DirectedFilter struct {
|
|||||||
Relay string
|
Relay string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (df DirectedFilter) String() string {
|
||||||
|
return fmt.Sprintf("%s(%s)", df.Relay, df.Filter)
|
||||||
|
}
|
||||||
|
|
||||||
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) }
|
||||||
|
|
||||||
// NewPool creates a new Pool with the given context and options.
|
// NewPool creates a new Pool with the given context and options.
|
||||||
|
|||||||
Reference in New Issue
Block a user