Summary
RuntimeServices is constructed at the Fastly adapter entry point but not yet threaded into the downstream handlers (handle_auction, handle_publisher_request, and the synthetic ID handler). Those handlers still call GeoInfo::from_request and other deprecated Fastly-specific APIs directly.
Work
- Pass
&RuntimeServices through route_request into each handler
- Replace
GeoInfo::from_request call sites with runtime_services.geo().lookup(runtime_services.client_info.client_ip)
- Remove the
#[allow(deprecated)] annotations added as a temporary shim
Context
Flagged in #545 by @ChristianPavilonis. Part of the EdgeZero platform portability migration.
Summary
RuntimeServicesis constructed at the Fastly adapter entry point but not yet threaded into the downstream handlers (handle_auction,handle_publisher_request, and the synthetic ID handler). Those handlers still callGeoInfo::from_requestand other deprecated Fastly-specific APIs directly.Work
&RuntimeServicesthroughroute_requestinto each handlerGeoInfo::from_requestcall sites withruntime_services.geo().lookup(runtime_services.client_info.client_ip)#[allow(deprecated)]annotations added as a temporary shimContext
Flagged in #545 by @ChristianPavilonis. Part of the EdgeZero platform portability migration.