Skip to content

Commit

Permalink
Re-implement hack for GH API rate limiting
Browse files Browse the repository at this point in the history
  • Loading branch information
eirikb committed Jul 14, 2024
1 parent 27941dc commit 94e6af3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/stage4/src/executors/caddy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ impl Executor for Caddy {
fn get_download_urls<'a>(&self, _input: &'a AppInput) -> Pin<Box<dyn Future<Output=Vec<Download>> + 'a>> {
Box::pin(async move {
let mut downloads: Vec<Download> = vec!();
let octocrab = octocrab::Octocrab::builder().build().unwrap();
let octocrab = octocrab::Octocrab::builder().base_uri("https://ghapi.ggcmd.io/").unwrap().build().unwrap();
let mut page: u32 = 1;
loop {
let releases = octocrab.repos("caddyserver", "caddy")
Expand Down
2 changes: 1 addition & 1 deletion src/stage4/src/executors/deno.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ impl Executor for Deno {
fn get_download_urls<'a>(&self, _input: &'a AppInput) -> Pin<Box<dyn Future<Output=Vec<Download>> + 'a>> {
Box::pin(async move {
let mut downloads: Vec<Download> = vec!();
let octocrab = octocrab::Octocrab::builder().build().unwrap();
let octocrab = octocrab::Octocrab::builder().base_uri("https://ghapi.ggcmd.io/").unwrap().build().unwrap();
let mut page: u32 = 1;
loop {
let releases = octocrab.repos("denoland", "deno")
Expand Down

0 comments on commit 94e6af3

Please sign in to comment.