From 1cde74f05e6e50b2948bb1cf0c6de3e527293a85 Mon Sep 17 00:00:00 2001 From: Lev Kokotov Date: Tue, 8 Aug 2023 17:45:48 -0700 Subject: [PATCH] Revert "Preserve existing behavior" (#542) Revert "Preserve existing behavior (#541)" This reverts commit a4de6c1eb6549e593e69d23f956d4c5486e6ade7. --- src/config.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/config.rs b/src/config.rs index 803d3a75..0e4b8c7d 100644 --- a/src/config.rs +++ b/src/config.rs @@ -513,7 +513,7 @@ pub struct Pool { pub query_parser_max_length: Option, - #[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" => (),