Update hydrus version

Signed-off-by: trivernis <trivernis@protonmail.com>
main
trivernis 2 years ago
parent 65982695aa
commit 0ac7df73e8
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

4
Cargo.lock generated

@ -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",

@ -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"

@ -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
}
}

Loading…
Cancel
Save