mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[PR #606] [MERGED] Finish tokio migration #997
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#997
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?
📋 Pull Request Information
Original PR: https://github.com/librespot-org/librespot/pull/606
Author: @Johannesd3
Created: 2/21/2021
Status: ✅ Merged
Merged: 2/23/2021
Merged by: @ashthespy
Base:
tokio_migration← Head:tokio_connect_migration📝 Commits (5)
daf7ecdMigrate librespot-connect to tokio 1.02c81aaaImplement MercurySender not as sink1c4d57cAdd shutdown to discovery server007e653Restore original blocking player behaviour220061eMigrate application to tokio 1.0📊 Changes
12 files changed (+1255 additions, -491 deletions)
View changed files
📝
Cargo.lock(+295 -83)📝
Cargo.toml(+23 -7)📝
connect/Cargo.toml(+4 -4)📝
connect/src/discovery.rs(+55 -78)📝
connect/src/spirc.rs(+129 -166)📝
core/src/mercury/mod.rs(+31 -29)📝
core/src/mercury/sender.rs(+17 -38)📝
core/src/session.rs(+13 -2)📝
playback/src/player.rs(+67 -67)📝
src/lib.rs(+1 -1)➕
src/main.rs(+600 -0)📝
src/player_event_handler.rs(+20 -16)📄 Description
This PR finishes the tokio migration. The application is working again - after all it was easier than I thought -, but I'm pretty sure it's not perfect yet.
I had to figure out how to make the player blocking again because there were some mysterious bugs in the async version (now it's again unimportant whether the sinks are Send, but it's nice to have).
@sashahilton00 @ashthespy How do we proceed? Before merging it into dev it should be tested more thoroughly, and I would like to do some refactoring.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.