Skip to content

Commit

Permalink
Preserve existing behavior (#541)
Browse files Browse the repository at this point in the history
  • Loading branch information
levkk authored Aug 8, 2023
1 parent e14b283 commit a4de6c1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion 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)] // False
#[serde(default = "Pool::query_parser_read_write_splitting")] // False
pub query_parser_read_write_splitting: bool,

#[serde(default)] // False
Expand Down Expand Up @@ -592,6 +592,10 @@ 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 a4de6c1

Please sign in to comment.