From 263e03f4b8bd24ddd94cb3719020e09599f21457 Mon Sep 17 00:00:00 2001 From: sharnoff Date: Sun, 29 Aug 2021 23:19:37 -0700 Subject: [PATCH] Improve code & text formatting in proxy welcome Adds some named formatting variables to make things a little more clear. Also adds some words & commas to the message itself. --- proxy/src/proxy.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/proxy/src/proxy.rs b/proxy/src/proxy.rs index f081c391e0..4e9e242467 100644 --- a/proxy/src/proxy.rs +++ b/proxy/src/proxy.rs @@ -182,14 +182,14 @@ impl ProxyConnection { let hello_message = format!("☀️ Welcome to Zenith! -To proceed with database creation open following link: +To proceed with database creation, open the following link: - {}{} + {redirect_uri}{sess_id} -It needed to be done once and we will send you '.pgpass' file which will allow you to access or create +It needs to be done once and we will send you '.pgpass' file, which will allow you to access or create databases without opening the browser. -", self.state.conf.redirect_uri,self.psql_session_id); +", redirect_uri = self.state.conf.redirect_uri, sess_id = self.psql_session_id); self.pgb .write_message_noflush(&BeMessage::AuthenticationOk)?;