Skip to content

Commit

Permalink
Revert octocrab::instance usage as it gets rate limited on macOS GH…
Browse files Browse the repository at this point in the history
… Actions
  • Loading branch information
theRookieCoder committed May 22, 2024
1 parent ac107d6 commit f894d3e
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/subcommands/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ use ferinth::{
use furse::{structures::mod_structs::Mod, Furse};
use itertools::{izip, Itertools};
use libium::config::structs::{ModIdentifier, Profile};
use octocrab::models::{repos::Release, Repository};
use octocrab::{
models::{repos::Release, Repository},
OctocrabBuilder,
};
use tokio::task::JoinSet;

enum Metadata {
Expand Down Expand Up @@ -53,8 +56,13 @@ pub async fn verbose(md: Ferinth, cf: Furse, profile: &mut Profile, markdown: bo
ModIdentifier::GitHubRepository((owner, repo)) => {
tasks.spawn(async {
Ok((
octocrab::instance().repos(&owner, &repo).get().await?,
octocrab::instance()
OctocrabBuilder::new()
.build()?
.repos(&owner, &repo)
.get()
.await?,
OctocrabBuilder::new()
.build()?
.repos(owner, repo)
.releases()
.list()
Expand Down

0 comments on commit f894d3e

Please sign in to comment.