Skip to content

Commit

Permalink
chore: remove a bit of repetition
Browse files Browse the repository at this point in the history
before: `Timed out while waiting for WAL record at LSN ... to
arrive, last_record_lsn ... disk consistent LSN=...,
WalReceiver status: WalReceiver status: disconnected`

after: `Timed out while waiting for WAL record at LSN ... to
arrive, last_record_lsn ... disk consistent LSN=...,
WalReceiver status: disconnected`
  • Loading branch information
koivunej authored and bayandin committed Jul 8, 2023
1 parent f639ad0 commit d20b6ce
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ pub struct ConnectionManagerStatus {
impl ConnectionManagerStatus {
/// Generates a string, describing current connection status in a form, suitable for logging.
pub fn to_human_readable_string(&self) -> String {
let mut resulting_string = "WalReceiver status".to_string();
let mut resulting_string = String::new();
match &self.existing_connection {
Some(connection) => {
if connection.has_processed_wal {
Expand Down

0 comments on commit d20b6ce

Please sign in to comment.