dbg: excessive logging
All checks were successful
On_Push / lint_fmt (push) Successful in 5s
On_Push / lint_clippy (push) Successful in 7s
On_Push / test (push) Successful in 8s
On_Push / build (push) Successful in 6s

This commit is contained in:
silver 2024-11-23 23:49:00 +00:00
parent eee6a76c69
commit 0097761c69
Signed by: silver
GPG key ID: 36F93D61BAD3FD7D

View file

@ -204,6 +204,7 @@ impl Client {
// if the key isnt set then we cant do anything.
let api_key = match &self.base_key {
None => {
dbg!("No API Key");
return None;
}
Some(key) => key,
@ -219,12 +220,25 @@ impl Client {
.await
{
Ok(x) => {
if let Ok(y) = x.json::<WolvesResultSingle<WolvesUserExists>>().await {
match x.json::<WolvesResultSingle<WolvesUserExists>>().await {
Ok(y) => {
// this is the only time we will get a positive response, the None at the end catches everything else
if let WolvesUserExists::S(z) = y.result {
if let Ok(id) = z.parse::<i64>() {
match y.result {
WolvesUserExists::S(z) => match z.parse::<i64>() {
Ok(id) => {
return Some(id);
}
Err(e) => {
dbg!(e);
}
},
WolvesUserExists::B(b) => {
dbg!(b);
}
}
}
Err(e) => {
dbg!(e);
}
}
}