go-resiliency v1.7.0 Release Notes

Release Date: 2024-07-19 // about 2 years ago
    • โž• Adds Retrier.WithSurfaceWorkErrors() to ask the Retrier to always return the work function's error even if a context deadline is hit (thanks to Elizabeth Cox).

Previous changes from v1.6.0

    • โž• Adds Breaker.GetState() to check the breaker state directly (e.g. for monitoring metrics).
    • ๐Ÿ›  Fix a race condition in the Batcher that could have lead to a panic if multiple batches ended up executing at once (thanks to Tiago Peczenyj for the discovery and very clear bug report).
    • ๐Ÿ›  Fix Batcher.Shutdown() to behave correctly when multiple batches end up executing at once.
    • ๐Ÿ”จ A variety of small refactors, simplifications, and test suite improvements.