mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[GH-ISSUE #1065] dev: future returned by Session::connect() is no longer Send #503
Labels
No labels
A-Alsa
SpotifyAPI
Tokio 1.0
audio
bug
can't reproduce
compilation
dependencies
duplicate
enhancement
good first issue
help wanted
high priority
imported
imported
invalid
new api
pull-request
question
reverse engineering
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librespot#503
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @gdesmott on GitHub (Oct 15, 2022).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/1065
See this simple change to demonstrate the problem:
This doesn't work because the
Futurereturned bySession::connect()is notSend.Because of this
librespotcannot longer be used with framework such as Rocket which requires futures to be Send.This used to work fine with an older version so this is likely a regression.
@roderickvd commented on GitHub (Oct 20, 2022):
Well regression... this is new functionality but still! Thanks for that minimal working example.
From a quick look it seems that the problem is that one of the variants of
rsa::padding::PaddingSchemeis notSendbut not the one that we are using. I also see that there is an update of that crate with some API changes.I don't have much time right now but maybe that either of these offer some direction.
@gdesmott commented on GitHub (Oct 20, 2022):
Let's say it's a regression from an older
devversion. ;)PaddingSchemeis still!Sendin the latest version of the crate so that won't help.I reported the problem to the rsa crate as well: https://github.com/RustCrypto/RSA/issues/214
@gdesmott commented on GitHub (Oct 20, 2022):
Then we can easily workaround this problem: https://github.com/librespot-org/librespot/pull/1066