Skip to content

Commit 2f37374

Browse files
authored
Use a page size of 1 for release retrieval (#1083)
The default page size times out server side after 10s. A page size of 5 takes 2s. We can generally expect this to be the latest release though, so 1 per page seems fine.
1 parent eabdf38 commit 2f37374

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/github.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ async fn get_draft_release_by_tag(
180180
.repos(organization, repo)
181181
.releases()
182182
.list()
183+
.per_page(1)
183184
.send()
184185
.await?;
185186

0 commit comments

Comments
 (0)