Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
grooviegermanikus committed May 3, 2024
1 parent 1e2c8d8 commit fe196a3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion benchrunner-service/src/postgres/postgres_session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ impl PostgresSession {
pub async fn new(
PostgresSessionConfig { pg_config, ssl }: PostgresSessionConfig,
) -> anyhow::Result<Self> {
let pg_config = pg_config.parse::<tokio_postgres::Config>()
let pg_config = pg_config
.parse::<tokio_postgres::Config>()
.context("Postgres config parser")?;

let client = if let SslMode::Disable = pg_config.get_ssl_mode() {
Expand Down
3 changes: 2 additions & 1 deletion blockstore/src/block_stores/postgres/postgres_session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ impl PostgresSession {
pub async fn new(
PostgresSessionConfig { pg_config, ssl }: PostgresSessionConfig,
) -> anyhow::Result<Self> {
let pg_config = pg_config.parse::<tokio_postgres::Config>()
let pg_config = pg_config
.parse::<tokio_postgres::Config>()
.context("Postgres config parser")?;

let client = if let SslMode::Disable = pg_config.get_ssl_mode() {
Expand Down
3 changes: 2 additions & 1 deletion lite-rpc/src/postgres_logger/postgres_session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ impl PostgresSession {
pub async fn new(
PostgresSessionConfig { pg_config, ssl }: PostgresSessionConfig,
) -> anyhow::Result<Self> {
let pg_config = pg_config.parse::<tokio_postgres::Config>()
let pg_config = pg_config
.parse::<tokio_postgres::Config>()
.context("Postgres config parser")?;

let client = if let SslMode::Disable = pg_config.get_ssl_mode() {
Expand Down

0 comments on commit fe196a3

Please sign in to comment.