From c4b1f5ab5c1d0430c6489f2da39aa7a058373bdd Mon Sep 17 00:00:00 2001 From: Nicolas Guiard Date: Wed, 11 Nov 2020 11:14:28 +0100 Subject: [PATCH] Fix unix socket location in docs (/var/run/postgresql instead of /var/lib/postgresql) --- postgres/src/config.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/postgres/src/config.rs b/postgres/src/config.rs index 249e6b44..c8dffa33 100644 --- a/postgres/src/config.rs +++ b/postgres/src/config.rs @@ -59,7 +59,7 @@ use tokio_postgres::{Error, Socket}; /// ``` /// /// ```not_rust -/// host=/var/lib/postgresql,localhost port=1234 user=postgres password='password with spaces' +/// host=/var/run/postgresql,localhost port=1234 user=postgres password='password with spaces' /// ``` /// /// ```not_rust @@ -80,7 +80,7 @@ use tokio_postgres::{Error, Socket}; /// ``` /// /// ```not_rust -/// postgresql://user:password@%2Fvar%2Flib%2Fpostgresql/mydb?connect_timeout=10 +/// postgresql://user:password@%2Fvar%2Frun%2Fpostgresql/mydb?connect_timeout=10 /// ``` /// /// ```not_rust @@ -88,7 +88,7 @@ use tokio_postgres::{Error, Socket}; /// ``` /// /// ```not_rust -/// postgresql:///mydb?user=user&host=/var/lib/postgresql +/// postgresql:///mydb?user=user&host=/var/run/postgresql /// ``` #[derive(Clone)] pub struct Config {