Skip to content

Commit 94b2395

Browse files
committed
0.12.1 - VRCWB Ratelimit
1 parent f53f929 commit 94b2395

File tree

3 files changed

+23
-18
lines changed

3 files changed

+23
-18
lines changed

Cargo.lock

Lines changed: 17 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "vrc-log"
3-
version = "0.12.0"
3+
version = "0.12.1"
44
authors = ["Shayne Hartford <shaybox@shaybox.com>"]
55
edition = "2021"
66
description = "VRChat Local Avatar ID Logger"

src/provider/vrcwb.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ impl Provider for VrcWB {
5252
let unique = match status {
5353
StatusCode::OK => false,
5454
StatusCode::NOT_FOUND => true,
55+
StatusCode::TOO_MANY_REQUESTS => {
56+
warn!("[{name}] 429 Rate Limit, Please Wait 1 Minute...");
57+
tokio::time::sleep(Duration::from_secs(60)).await;
58+
Box::pin(self.send_avatar_id(avatar_id)).await?
59+
}
5560
_ => bail!("[{name}] {status} | {text}"),
5661
};
5762

0 commit comments

Comments
 (0)