diff options
-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}"); |