Skip to content

Commit e5b2a05

Browse files
committed
simplify example
1 parent 7502ccd commit e5b2a05

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

sender_pool.go

+1-5
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,7 @@ func PoolFromConf(conf string, opts ...LineSenderPoolOption) (*LineSenderPool, e
9999
// }
100100
//
101101
// // Add Pool-level options manually
102-
// for _, opt := range []LineSenderPoolOption{
103-
// WithMaxSenders(32),
104-
// } {
105-
// opt(p)
106-
// }
102+
// WithMaxSenders(32)(p)
107103
func PoolFromOptions(opts ...LineSenderOption) (*LineSenderPool, error) {
108104
pool := &LineSenderPool{
109105
maxSenders: 64,

0 commit comments

Comments
 (0)