Skip to content

Commit 93081ae

Browse files
fix: run create client in tokio runtime
1 parent 629e5ec commit 93081ae

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/bin/bors.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,9 @@ fn try_main(opts: Opts) -> anyhow::Result<()> {
7171
let db = runtime
7272
.block_on(initialize_db(&opts.db))
7373
.context("Cannot initialize database")?;
74-
75-
let client = create_github_client(opts.app_id.into(), opts.private_key.into_bytes().into())?;
74+
let client = runtime.block_on(async move {
75+
create_github_client(opts.app_id.into(), opts.private_key.into_bytes().into())
76+
})?;
7677

7778
let ctx = runtime.block_on(BorsContext::new(
7879
CommandParser::new(opts.cmd_prefix),

0 commit comments

Comments
 (0)