forked from Furumi/furumi-tui
Use the shared device-sync wire types
The private copies of the device-sync wire types are replaced by music_dht::device_sync. Golden tests keep the furumi-tui 0.3.x types verbatim and check that v3 messages serialize byte for byte the same. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
253583b139
commit
e7713269f2
8 files changed
+679
-533
No files matched your search
@@ -61,7 +61,10 @@ async fn localhost_web_peer() {
|
||||
bytes.push(b'\n');
|
||||
stream.write_all(&bytes).await.unwrap();
|
||||
let response: WireMessage =
|
||||
serde_json::from_slice(&read_line(&mut stream).await.unwrap()).unwrap();
|
||||
serde_json::from_slice(
|
||||
&music_dht::device_sync::read_line(&mut stream).await.unwrap(),
|
||||
)
|
||||
.unwrap();
|
||||
let WireMessage::SyncResponse {
|
||||
accepted: true,
|
||||
playback: Some(snapshot),
|
||||
|
||||
Reference in new issue
Block a user