Skip to content

Commit

Permalink
Merge branch 'main' into rocks_isolation_and_versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
marcospb19-cw authored Aug 2, 2024
2 parents 637eff8 + acb53b2 commit 10ad723
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ use crate::eth::primitives::ExternalReceipt;
use crate::eth::primitives::Hash;
use crate::eth::primitives::Wei;
use crate::eth::storage::ExternalRpcStorage;
use crate::ext::not;
use crate::ext::to_json_value;
use crate::ext::traced_sleep;
use crate::ext::SleepReason;
Expand All @@ -38,6 +39,10 @@ impl PostgresExternalRpcStorage {
pub async fn new(config: PostgresExternalRpcStorageConfig) -> anyhow::Result<Self> {
tracing::info!(?config, "creating postgres external rpc storage");

if not(config.url.contains('?')) {
tracing::warn!(url = config.url, "url isn't identified with '?app=NAME' query parameter");
}

let result = PgPoolOptions::new()
.min_connections(config.connections)
.max_connections(config.connections)
Expand Down

0 comments on commit 10ad723

Please sign in to comment.