ksysoev / wasabi

Toolkit for Creating WebSocket API Gateways
MIT License
4 stars 2 forks source link

feat: add predicate for retry middleware #112

Closed KianYang-Lee closed 5 days ago

KianYang-Lee commented 5 days ago

Added an additional optional variadic parameter for NewRetryMiddleware. The parameter accepts a slice of first-level functions that accepts an error argument and return boolean value. Users can specify the function(s) that they want for stopping retry middleware from retrying.

closes #94

ksysoev commented 5 days ago

@KianYang-Lee thanks for the contribution