Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
fix use rocket to parse get uid?rid
Browse files Browse the repository at this point in the history
  • Loading branch information
OscarZhou0107 committed May 2, 2024
1 parent 0afe71c commit 7813f8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ async fn get_file(
cache: &State<Arc<ConcurrentDiskCache>>,
s3_connectors: &State<Vec<Arc<dyn StorageConnector + Send + Sync>>>,
) -> cache::GetFileResult {
let request_id = rid.unwrap_or_else(|| "0".to_string()); // Default to "0" if `rid` is not provided
let request_id = rid.unwrap_or_else(|| "0".to_string()); // Default to "0" if `rid` is not provided

debug!("Requested file: {}", uid);
debug!("Request ID: {}", request_id);
Expand Down

0 comments on commit 7813f8c

Please sign in to comment.