Release overview
API improvements and bugfixes.
What is new
- Disable auto flush when set to off in config #51
- Add
PoolFromOptions
pool constructor #52 - Make
LineSenderPool
blocking and simplify its API #53
LineSenderPool
users need to migrate their existing code.
Old code:
sender, err := pool.Acquire(ctx)
if err != nil {
panic(err)
}
// ...
if err := pool.Release(ctx, sender); err != nil {
panic(err)
}
Migrated code:
// Acquire method was renamed to Sender.
sender, err := pool.Sender(ctx)
if err != nil {
panic(err)
}
// ...
// Close call returns the sender back to the pool.
if err := sender.Close(ctx); err != nil {
panic(err)
}