apple / servicetalk

A networking framework that evolves with your application
https://docs.servicetalk.io
Apache License 2.0
927 stars 181 forks source link

`RedirectSingle`: avoid extra operator for exception handling path #3114

Closed idelpivnitskiy closed 1 week ago

idelpivnitskiy commented 1 week ago

Use new Single.subscribe(...) overload introduced in #3112 that takes errorConsumer to avoid using extra operator whenOnError. It will also help to avoid logging those exceptions by SimpleSingleSubscriber (hard to relate to a real request) and instead they will only bubble up on the caller path.