Skip to content

Commit

Permalink
optimize.
Browse files Browse the repository at this point in the history
  • Loading branch information
chinyuchan committed Jul 8, 2024
1 parent 65748a9 commit e36d0e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scanner/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use sqlx::{Pool, Postgres};
use std::env;
use std::time::Duration;

const DEFAULT_INTERVAL: u64 = 6; // 6s
const DEFAULT_INTERVAL: u64 = 4; // 4s
const DEFAULT_RPC_RETRIES: usize = 3;

#[derive(Parser, Debug)]
Expand Down
1 change: 1 addition & 0 deletions updater/src/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ impl Storage {
Ok(())
}

#[allow(dead_code)]
pub async fn get_validator_list(&self) -> Result<Vec<String>> {
let rows = sqlx::query("SELECT DISTINCT validator FROM evm_stakes")
.fetch_all(&self.pool)
Expand Down

0 comments on commit e36d0e7

Please sign in to comment.