mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-07-17 23:12:19 +02:00
fix an accidental API breaking change.
This commit is contained in:
4
pool.go
4
pool.go
@ -57,12 +57,12 @@ func (pool *SimplePool) EnsureRelay(url string) (*Relay, error) {
|
|||||||
|
|
||||||
// SubMany opens a subscription with the given filters to multiple relays
|
// SubMany opens a subscription with the given filters to multiple relays
|
||||||
// the subscriptions only end when the context is canceled
|
// the subscriptions only end when the context is canceled
|
||||||
func (pool *SimplePool) SubMany(ctx context.Context, urls []string, filters Filters, unique bool) chan IncomingEvent {
|
func (pool *SimplePool) SubMany(ctx context.Context, urls []string, filters Filters) chan IncomingEvent {
|
||||||
return pool.subMany(ctx, urls, filters, true)
|
return pool.subMany(ctx, urls, filters, true)
|
||||||
}
|
}
|
||||||
|
|
||||||
// SubManyNonUnique is like SubMany, but returns duplicate events if they come from different relays
|
// SubManyNonUnique is like SubMany, but returns duplicate events if they come from different relays
|
||||||
func (pool *SimplePool) SubManyNonUnique(ctx context.Context, urls []string, filters Filters, unique bool) chan IncomingEvent {
|
func (pool *SimplePool) SubManyNonUnique(ctx context.Context, urls []string, filters Filters) chan IncomingEvent {
|
||||||
return pool.subMany(ctx, urls, filters, false)
|
return pool.subMany(ctx, urls, filters, false)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user