chore: debug logging
This commit is contained in:
+4
-2
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user