aboutsummaryrefslogtreecommitdiffstats
path: root/server/src
diff options
context:
space:
mode:
authorLibravatar Rutger Broekhoff2024-01-24 20:38:34 +0100
committerLibravatar Rutger Broekhoff2024-01-24 20:38:34 +0100
commit03b6c1b8817cc8224a12eb7f938cdf53e5b1881d (patch)
treec9ea76d89f1e4bfa5bedc268ccfb4b09e3f48529 /server/src
parent73b5e2fee5e9490ec146b05322b45c7d8bb9ee46 (diff)
downloadgitolfs3-03b6c1b8817cc8224a12eb7f938cdf53e5b1881d.tar.gz
gitolfs3-03b6c1b8817cc8224a12eb7f938cdf53e5b1881d.zip
What about making use of the download limiter?
Diffstat (limited to 'server/src')
-rw-r--r--server/src/main.rs2
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()