binance / binance-spot-connector-rust

MIT License
109 stars 39 forks source link

Make client.send(..) return a `Send` Future. #13

Closed raduom closed 6 months ago

raduom commented 6 months ago

The form_urlencoded library uses a &str behind the scenes which is not Send causing the feature returned to not be Send either.

Since the serializer itself is not actually needed across .await calls I moved it within a scope so it gets properly disposed of before the .await call.

raduom commented 6 months ago

There is another, similar PR opened since July.