cloudflare / pingora

A library for building fast, reliable and evolvable network services.
Apache License 2.0
20.64k stars 1.12k forks source link

Update proxy_h2.rs #63

Closed AiNi1823 closed 3 months ago

AiNi1823 commented 5 months ago

添加一个闭包,记录错误并返回一个带有详细错误信息的 Box,在调用 upstream_request_filter 后使用 map_err 处理错误,提高代码的可读性。

gdavidsson commented 3 months ago

Hey @AiNi1823, actually I just got some more feedback internally, and these types of things are logged in a later phase, so we avoid ad-hoc error logging before that. Thanks again!