Skip to content

Commit

Permalink
Revert "Preserve existing behavior" (#542)
Browse files Browse the repository at this point in the history
Revert "Preserve existing behavior (#541)"

This reverts commit a4de6c1.
  • Loading branch information
levkk authored Aug 9, 2023
1 parent a4de6c1 commit 1cde74f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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" => (),
Expand Down

0 comments on commit 1cde74f

Please sign in to comment.