Revert "Preserve existing behavior" (#542)

Revert "Preserve existing behavior (#541)"

This reverts commit a4de6c1eb6.
This commit is contained in:
Lev Kokotov
2023-08-08 17:45:48 -07:00
committed by GitHub
parent a4de6c1eb6
commit 1cde74f05e

View File

@@ -513,7 +513,7 @@ pub struct Pool {
pub query_parser_max_length: Option<usize>,
#[serde(default = "Pool::query_parser_read_write_splitting")] // False
#[serde(default)] // False
pub query_parser_read_write_splitting: bool,
#[serde(default)] // False
@@ -592,10 +592,6 @@ impl Pool {
true
}
pub fn query_parser_read_write_splitting() -> bool {
true
}
pub fn validate(&mut self) -> Result<(), Error> {
match self.default_role.as_ref() {
"any" => (),