chore: debug logging

This commit is contained in:
Michel de Graaf
2025-11-11 14:53:40 +01:00
parent a4aee59e1e
commit a1b88f58bd
7 changed files with 148 additions and 91 deletions
+4 -2
View File
@@ -6,14 +6,16 @@ fn main() {
PeerAddress::new(String::from("server.slsknet.org"), 2242),
String::from("xxxxxx"),
String::from("xxxxxx"),
true,
false,
None,
);
client.connect();
match client.login() {
Ok(_) => {
match client.search("michel test file", Duration::from_secs(10)) {
match client
.search("Eternity Alex Kassian", Duration::from_secs(10))
{
Ok(results) => {
if let Some(result) =
results.iter().find(|r| !r.files.is_empty())