diff options
| author | Rutger Broekhoff | 2024-01-24 20:06:21 +0100 | 
|---|---|---|
| committer | Rutger Broekhoff | 2024-01-24 20:06:21 +0100 | 
| commit | cfbb6cf7e35c1fac98ba615ac68e68d0e5591b67 (patch) | |
| tree | d7dcc7fde47c6db37344f09b8a3a7849a7dcab02 | |
| parent | 849e5ef60ee32fd5743f5a2da9a90fad2b869a49 (diff) | |
| download | gitolfs3-cfbb6cf7e35c1fac98ba615ac68e68d0e5591b67.tar.gz gitolfs3-cfbb6cf7e35c1fac98ba615ac68e68d0e5591b67.zip | |
Fix server build
| -rw-r--r-- | server/src/main.rs | 5 | 
1 files changed, 4 insertions, 1 deletions
| diff --git a/server/src/main.rs b/server/src/main.rs index f18edb3..b6c0ad4 100644 --- a/server/src/main.rs +++ b/server/src/main.rs | |||
| @@ -1023,7 +1023,10 @@ impl DownloadLimiter { | |||
| 1023 | return DownloadLimiter { current: 0, limit }; | 1023 | return DownloadLimiter { current: 0, limit }; | 
| 1024 | } | 1024 | } | 
| 1025 | }; | 1025 | }; | 
| 1026 | let current: u64 = match dlimit_str.parse().map_err(tokio::io::Error::other) { | 1026 | let current: u64 = match dlimit_str | 
| 1027 | .parse() | ||
| 1028 | .map_err(|e| tokio::io::Error::new(tokio::io::ErrorKind::InvalidData, e)) | ||
| 1029 | { | ||
| 1027 | Ok(current) => current, | 1030 | Ok(current) => current, | 
| 1028 | Err(e) => { | 1031 | Err(e) => { | 
| 1029 | println!("Failed to read download counter, assuming 0: {e}"); | 1032 | println!("Failed to read download counter, assuming 0: {e}"); |