binance / binance-spot-connector-rust

Simple Rust connector to Binance API
MIT License
136 stars 43 forks source link

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

Closed raduom closed 10 months ago

raduom commented 10 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 10 months ago

There is another, similar PR opened since July.