Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nullchinchilla committed Apr 1, 2024
1 parent 72e4450 commit 2535df6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions binaries/geph5-exit/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ fn main() -> anyhow::Result<()> {
.from_env_lossy(),
)
.init();
tracing::info!("**** START GEPH EXIT ****");
let args: CliArgs = argh::from_env();
CONFIG_FILE
.set(serde_yaml::from_slice(&std::fs::read(args.config)?)?)
Expand Down
3 changes: 2 additions & 1 deletion binaries/geph5-exit/src/ratelimit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ static RL_CACHE: Lazy<Cache<blake3::Hash, RateLimiter>> = Lazy::new(|| {
pub async fn get_ratelimiter(level: AccountLevel, token: ClientToken) -> RateLimiter {
RL_CACHE
.get_with(blake3::hash(&(level, token).stdcode()), async {
RateLimiter::new(1000, 10_000_000)
RateLimiter::new(1000, 1_000_000)
})
.await
}
Expand Down Expand Up @@ -46,6 +46,7 @@ impl RateLimiter {

/// Waits until the given number of bytes can be let through.
pub async fn wait(&self, bytes: usize) {
eprintln!("start wait {}", bytes);
if bytes == 0 {
return;
}
Expand Down
3 changes: 3 additions & 0 deletions libraries/sillad-sosistab3/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
name = "sillad-sosistab3"
version = "0.1.0"
edition = "2021"
repository = "https://github.com/geph-official/geph5"
license="ISC"
description="A scramblesuit-like obfuscation protocol within the sillad framework"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down

0 comments on commit 2535df6

Please sign in to comment.