Skip to content

Commit

Permalink
optimize.
Browse files Browse the repository at this point in the history
  • Loading branch information
chinyuchan committed Feb 28, 2024
1 parent 4a7c0e9 commit 315408b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions explorer/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use poem::{listener::TcpListener, EndpointExt, Route, Server};
use poem_openapi::OpenApiService;
use scanner::rpc::TendermintRPC;
use sqlx::pool::PoolOptions;
use sqlx::{Pool, Postgres};
use std::time::Duration;
use tokio::sync::Mutex;

Expand All @@ -22,8 +23,8 @@ async fn main() -> Result<()> {
config.postgres.database
);

let pool = PoolOptions::new()
.max_connections(100)
let pool: Pool<Postgres> = PoolOptions::new()
.max_connections(10)
.connect(&postgres_config)
.await
.unwrap();
Expand Down

0 comments on commit 315408b

Please sign in to comment.