diff --git a/Cargo.lock b/Cargo.lock index af924f2..94cd496 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -599,9 +599,9 @@ checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" [[package]] name = "hydrus-api" -version = "0.9.2" +version = "0.9.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a23266e3af1f564c41b58c1ddd0cc0105e69e6546dd53f939ceb578dc8dbd46f" +checksum = "a3ee4a01380e02f9bf73d14e87021c756bc06d9838662a6bc27c786bba3b26c0" dependencies = [ "bytes 1.1.0", "chrono", diff --git a/Cargo.toml b/Cargo.toml index 09a687f..8034212 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,7 @@ repository = "https://github.com/Trivernis/hydrus-pixiv-tagger" [dependencies] pixiv-rs = "0.1.0" -hydrus-api = "0.9.2" +hydrus-api = "0.9.3" rustnao = "0.2.1" structopt = "0.3.26" tempdir = "0.3.7" diff --git a/src/main.rs b/src/main.rs index 3843f5f..cceba09 100644 --- a/src/main.rs +++ b/src/main.rs @@ -55,6 +55,7 @@ struct Options { async fn main() { env_logger::builder().init(); let cmd: Command = Command::from_args(); + log::debug!("args: {cmd:?}"); let opt = match &cmd { Command::SendUrl(opt) => opt.clone(), Command::SendTags(opt) => opt.clone(), @@ -98,7 +99,7 @@ async fn main() { } let elapsed = start.elapsed(); - if elapsed.as_secs() < 6 { + if elapsed.as_secs() < 8 { tokio::time::sleep(sleep_duration - elapsed).await; // rate limit of 6# / 30s } }