Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
hburn7 committed Feb 16, 2025
1 parent 30ab412 commit 2e26a3f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/database/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ use crate::{
utils::progress_utils::{progress_bar, progress_bar_spinner}
};
use itertools::Itertools;
use log::error;
use postgres_types::ToSql;
use std::{collections::HashMap, sync::Arc};
use log::error;
use tokio_postgres::{Client, Error, NoTls, Row};

#[derive(Clone)]
Expand Down Expand Up @@ -366,7 +366,7 @@ impl DbClient {

query += &value_placeholders.join(", ");
query += " RETURNING id";

if value_placeholders.is_empty() {
error!("No player_rating data to save to database");
panic!();
Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
use env_logger::Env;
use log::{debug, info};
use otr_processor::{
database::db::DbClient,
model::{otr_model::OtrModel, rating_utils::create_initial_ratings},
utils::test_utils::generate_country_mapping_players
};
use std::{collections::HashMap, env};
use env_logger::Env;
use log::{debug, info};

#[tokio::main]
async fn main() {
Expand Down

0 comments on commit 2e26a3f

Please sign in to comment.