diff options
author | Rutger Broekhoff | 2024-01-24 20:38:34 +0100 |
---|---|---|
committer | Rutger Broekhoff | 2024-01-24 20:38:34 +0100 |
commit | 03b6c1b8817cc8224a12eb7f938cdf53e5b1881d (patch) | |
tree | c9ea76d89f1e4bfa5bedc268ccfb4b09e3f48529 /server | |
parent | 73b5e2fee5e9490ec146b05322b45c7d8bb9ee46 (diff) | |
download | gitolfs3-03b6c1b8817cc8224a12eb7f938cdf53e5b1881d.tar.gz gitolfs3-03b6c1b8817cc8224a12eb7f938cdf53e5b1881d.zip |
What about making use of the download limiter?
Diffstat (limited to 'server')
-rw-r--r-- | server/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/main.rs b/server/src/main.rs index 2df42dd..d96ac17 100644 --- a/server/src/main.rs +++ b/server/src/main.rs | |||
@@ -642,7 +642,7 @@ async fn handle_download_object( | |||
642 | } | 642 | } |
643 | 643 | ||
644 | if let Some(content_length) = result.content_length() { | 644 | if let Some(content_length) = result.content_length() { |
645 | if content_length < 0 { | 645 | if content_length > 0 { |
646 | match state | 646 | match state |
647 | .dl_limiter | 647 | .dl_limiter |
648 | .lock() | 648 | .lock() |