Skip to content

Commit f894d3e

Browse files
Revert octocrab::instance usage as it gets rate limited on macOS GH Actions
1 parent ac107d6 commit f894d3e

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

src/subcommands/list.rs

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ use ferinth::{
1010
use furse::{structures::mod_structs::Mod, Furse};
1111
use itertools::{izip, Itertools};
1212
use libium::config::structs::{ModIdentifier, Profile};
13-
use octocrab::models::{repos::Release, Repository};
13+
use octocrab::{
14+
models::{repos::Release, Repository},
15+
OctocrabBuilder,
16+
};
1417
use tokio::task::JoinSet;
1518

1619
enum Metadata {
@@ -53,8 +56,13 @@ pub async fn verbose(md: Ferinth, cf: Furse, profile: &mut Profile, markdown: bo
5356
ModIdentifier::GitHubRepository((owner, repo)) => {
5457
tasks.spawn(async {
5558
Ok((
56-
octocrab::instance().repos(&owner, &repo).get().await?,
57-
octocrab::instance()
59+
OctocrabBuilder::new()
60+
.build()?
61+
.repos(&owner, &repo)
62+
.get()
63+
.await?,
64+
OctocrabBuilder::new()
65+
.build()?
5866
.repos(owner, repo)
5967
.releases()
6068
.list()

0 commit comments

Comments
 (0)