Skip to content

Commit 89ba93e

Browse files
authored
Merge pull request #152 from filecoin-project/fix/gh-get-files-from-public-repo
Fix/gh-get-files-from-public-repo
2 parents ae2c46a + 18bfecb commit 89ba93e

File tree

5 files changed

+23
-33
lines changed

5 files changed

+23
-33
lines changed

Cargo.lock

Lines changed: 18 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

fplus-database/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "fplus-database"
33
authors = ["clriesco", "kokal33", "alexmcon"]
4-
version = "1.0.20"
4+
version = "1.0.21"
55
edition = "2021"
66
description = "FPlus main database module"
77
license = "MIT OR Apache-2.0"

fplus-http-server/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "fplus-http-server"
33
authors = ["jbesraa", "kokal33", "clriesco"]
4-
version = "1.0.20"
4+
version = "1.0.21"
55
description = "FPlus main http module"
66
license = "MIT OR Apache-2.0"
77
edition = "2021"

fplus-lib/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "fplus-lib"
33
authors = ["jbesraa", "kokal33", "clriesco"]
4-
version = "1.0.20"
4+
version = "1.0.21"
55
edition = "2021"
66
description = "FPlus library/helper files"
77
license = "MIT OR Apache-2.0"
@@ -30,4 +30,4 @@ uuidv4 = "1.0.0"
3030
rayon = "1.8.0"
3131
log = "0.4.20"
3232
once_cell = "1.19.0"
33-
fplus-database = { path = "../fplus-database", version = "1.0.20"}
33+
fplus-database = { path = "../fplus-database", version = "1.0.21"}

fplus-lib/src/core/allocator/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pub async fn process_allocator_file(file_name: &str) -> Result<AllocatorModel, L
1919
let path = file_name.to_string();
2020

2121
let gh = GithubWrapper::new(owner.clone(), repo.clone(), installation_id.clone());
22-
let content_items = gh.get_file(&path, branch).await.map_err(|e| LDNError::Load(e.to_string()))?;
22+
let content_items = gh.get_files_from_public_repo(&owner, &repo, branch, Some(&path)).await.map_err(|e| LDNError::Load(e.to_string()))?;
2323
let mut model = content_items_to_allocator_model(content_items).map_err(|e| LDNError::Load(e.to_string()))?;
2424

2525
// Get multisig threshold from the blockchain if multisig address is available

0 commit comments

Comments
 (0)