Skip to content

Commit 92a6837

Browse files
committed
refactoring
1 parent c34efe2 commit 92a6837

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

atcoder-problems-backend/src/bin/crawl_whole_contest.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ async fn main() -> Result<()> {
1717
.nth(1)
1818
.expect("contest_id is not set.\nUsage: cargo run --bin crawl_whole_contest <contest_id>");
1919
let db = initialize_pool(&url).await?;
20-
let client = AtCoderClient::new(&username, &password)
21-
.await
22-
.expect("AtCoder authentication failure");
20+
let client = AtCoderClient::new(&username, &password).await?;
2321
let crawler = WholeContestCrawler::new(db, client, contest_id);
2422
crawler.crawl().await?;
2523
Ok(())

0 commit comments

Comments
 (0)