<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-proto/src/util/token_bucket, branch arti-v2.1.0</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v2.1.0</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v2.1.0'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2025-11-05T03:39:55Z</updated>
<entry>
<title>all: run cargo fmt</title>
<updated>2025-11-05T03:39:55Z</updated>
<author>
<name>Steven Engler</name>
<email>opara@torproject.org</email>
</author>
<published>2025-11-05T03:02:12Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=9bb8a888461473691085ea1bfc8fea0669d22e9c'/>
<id>urn:sha1:9bb8a888461473691085ea1bfc8fea0669d22e9c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>all: replace all uses of `futures::task::SpawnExt` with `tor_rtcompat::SpawnExt`</title>
<updated>2025-11-05T03:39:55Z</updated>
<author>
<name>Steven Engler</name>
<email>opara@torproject.org</email>
</author>
<published>2025-11-05T03:00:47Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=6bfa9e986694b4fce0926dd21f309161e497ced8'/>
<id>urn:sha1:6bfa9e986694b4fce0926dd21f309161e497ced8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Switch Cargo.toml files to edition 2024.</title>
<updated>2025-08-07T15:28:36Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2025-08-06T01:19:58Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=77b0de43b8c67cdb81befe0680a3df43b6ad37bc'/>
<id>urn:sha1:77b0de43b8c67cdb81befe0680a3df43b6ad37bc</id>
<content type='text'>
First, run

```
git grep -l "^edition =" |
    xargs perl -i -pe 's/^edition *=.*/edition = "2024"/;'
```

Second, manually verify that all Cargo.toml files have changed,
and nothing else has changed.

Third, run cargo fmt again.
</content>
</entry>
<entry>
<title>tor-proto: add `DynamicRateLimitedWriter`</title>
<updated>2025-06-16T19:19:37Z</updated>
<author>
<name>Steven Engler</name>
<email>opara@torproject.org</email>
</author>
<published>2025-06-09T16:38:32Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=34db37cc624953658b9223f374e44942c46da6bc'/>
<id>urn:sha1:34db37cc624953658b9223f374e44942c46da6bc</id>
<content type='text'>
This is a `Writer` rate limiter which can receive rate limit updates
from a `Stream`.
</content>
</entry>
<entry>
<title>tor-proto: fix bug in `RateLimitedWriter::poll_write`</title>
<updated>2025-06-08T23:25:01Z</updated>
<author>
<name>Steven Engler</name>
<email>opara@torproject.org</email>
</author>
<published>2025-06-08T22:18:01Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=28be14a2d6113c350dcbf45ff853b2fc6b567e7f'/>
<id>urn:sha1:28be14a2d6113c350dcbf45ff853b2fc6b567e7f</id>
<content type='text'>
Previously it did not behave correctly when `bucket.max()` was 0 (it
would sleep for 0 time instead of infinitely, triggering a debug
assertion).
</content>
</entry>
<entry>
<title>tor-proto: change `wake_when_bytes_available` to `NonZero&lt;u64&gt;`</title>
<updated>2025-06-08T23:24:31Z</updated>
<author>
<name>Steven Engler</name>
<email>opara@torproject.org</email>
</author>
<published>2025-06-08T21:42:29Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=9779de7adbe4aa9cc848e685151a6c5cde0a7bce'/>
<id>urn:sha1:9779de7adbe4aa9cc848e685151a6c5cde0a7bce</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-proto: add additional unit test for `TokenBucket::adjust`</title>
<updated>2025-06-08T23:24:20Z</updated>
<author>
<name>Steven Engler</name>
<email>opara@torproject.org</email>
</author>
<published>2025-06-08T21:34:32Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=147254f64c2dea79e79d16cae1f71d752c5365a8'/>
<id>urn:sha1:147254f64c2dea79e79d16cae1f71d752c5365a8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-proto: improve `TokenBucket::adjust`</title>
<updated>2025-06-08T21:35:35Z</updated>
<author>
<name>Steven Engler</name>
<email>opara@torproject.org</email>
</author>
<published>2025-06-08T21:32:39Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=309ad777aefdff38b7300fbe671810d2e20e8698'/>
<id>urn:sha1:309ad777aefdff38b7300fbe671810d2e20e8698</id>
<content type='text'>
The token bucket is now refilled before changing the rate.
</content>
</entry>
<entry>
<title>tor-proto: rename `TokenBucket::last_refill` to `added_tokens_at`</title>
<updated>2025-06-08T21:35:01Z</updated>
<author>
<name>Steven Engler</name>
<email>opara@torproject.org</email>
</author>
<published>2025-06-08T21:25:28Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=967af19283489b465bbd2179c2a8a013c278a238'/>
<id>urn:sha1:967af19283489b465bbd2179c2a8a013c278a238</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-proto: return `Result` from `tokens_available_at`</title>
<updated>2025-06-05T15:27:43Z</updated>
<author>
<name>Steven Engler</name>
<email>opara@torproject.org</email>
</author>
<published>2025-06-05T00:51:27Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=66d06e5b19b53e1aab0d5cf84572f5853528ce3b'/>
<id>urn:sha1:66d06e5b19b53e1aab0d5cf84572f5853528ce3b</id>
<content type='text'>
</content>
</entry>
</feed>
