Remove dbg! calls in mpd.rs
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
138446e040
commit
26a3381a25
1 changed files with 1 additions and 4 deletions
|
@ -104,7 +104,6 @@ impl Mpd {
|
||||||
stream.write_all(b"binarylimit 1048576\n").await?;
|
stream.write_all(b"binarylimit 1048576\n").await?;
|
||||||
buffer.clear();
|
buffer.clear();
|
||||||
reader.read_line(&mut buffer).await?;
|
reader.read_line(&mut buffer).await?;
|
||||||
dbg!(&buffer);
|
|
||||||
|
|
||||||
Ok(Self { stream, reader })
|
Ok(Self { stream, reader })
|
||||||
}
|
}
|
||||||
|
@ -126,7 +125,6 @@ impl Mpd {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn command(&mut self, command: &str) -> anyhow::Result<CommandResult> {
|
pub async fn command(&mut self, command: &str) -> anyhow::Result<CommandResult> {
|
||||||
dbg!(command);
|
|
||||||
let mut properties = Vec::new();
|
let mut properties = Vec::new();
|
||||||
|
|
||||||
self.stream
|
self.stream
|
||||||
|
@ -151,7 +149,6 @@ impl Mpd {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
} else if buffer.starts_with("OK") {
|
} else if buffer.starts_with("OK") {
|
||||||
dbg!(&properties);
|
|
||||||
break Ok(CommandResult {
|
break Ok(CommandResult {
|
||||||
properties,
|
properties,
|
||||||
binary: None,
|
binary: None,
|
||||||
|
@ -159,7 +156,7 @@ impl Mpd {
|
||||||
} else if buffer.starts_with("ACK") {
|
} else if buffer.starts_with("ACK") {
|
||||||
break Err(anyhow!(buffer));
|
break Err(anyhow!(buffer));
|
||||||
} else {
|
} else {
|
||||||
dbg!(&buffer);
|
println!("Unexpected MPD response {buffer}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue