Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions jupiter/src/storage/issue_storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,7 @@ impl IssueStorage {
pub async fn get_label_by_id(&self, id: i64) -> Result<Option<label::Model>, MegaError> {
let model = label::Entity::find_by_id(id)
.one(self.get_connection())
.await
.unwrap();
.await?;
Ok(model)
}

Expand Down
3 changes: 2 additions & 1 deletion mercury/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ pub mod test_utils {

async fn download_lfs_file_if_not_exist(file_name: &str, output_path: &PathBuf, sha256: &str) {
let url = format!(
"https://gitmono.s3.ap-southeast-2.amazonaws.com/packs/{file_name}",
"https://file.gitmega.com/packs/{file_name}",
// "https://gitmono.s3.ap-southeast-2.amazonaws.com/packs/{file_name}",
// "https://gitmono.oss-cn-beijing.aliyuncs.com/{}",
);
if !check_file_hash(output_path, sha256).await {
Expand Down
Loading