diff --git a/src/eth/storage/postgres_external_rpc/postgres_external_rpc.rs b/src/eth/storage/postgres_external_rpc/postgres_external_rpc.rs index f402eb6d5..f887c736e 100644 --- a/src/eth/storage/postgres_external_rpc/postgres_external_rpc.rs +++ b/src/eth/storage/postgres_external_rpc/postgres_external_rpc.rs @@ -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; @@ -38,6 +39,10 @@ impl PostgresExternalRpcStorage { pub async fn new(config: PostgresExternalRpcStorageConfig) -> anyhow::Result { 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)