Skip to content

Commit

Permalink
add mutable access to the hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
guswynn committed Dec 1, 2023
1 parent 7324560 commit b759caa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tokio-postgres/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,11 @@ impl Config {
&self.host
}

/// Gets a mutable view of the hosts that have been added to the configuration with `host`.
pub fn get_hosts_mut(&mut self) -> &mut [Host] {
&mut self.host
}

/// Sets the hostname used during TLS certificate verification, if enabled.
///
/// This can be useful if you are connecting through an SSH tunnel.
Expand Down

0 comments on commit b759caa

Please sign in to comment.