alloy-rs / alloy

Transports, Middleware, and Networks for the Alloy project
https://alloy.rs
Apache License 2.0
653 stars 236 forks source link

fix: wasm compatibility for RetryBackoff #1666

Closed klkvr closed 3 days ago

klkvr commented 3 days ago

Motivation

Closes https://github.com/alloy-rs/alloy/issues/1147

Solution

Use TransportFut in the bound which adjusts when to require Send.

This is a bit more restrictive but should be fine as all transports are requried to produce TransportFut

PR Checklist