File tree Expand file tree Collapse file tree 2 files changed +1
-12
lines changed Expand file tree Collapse file tree 2 files changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ impl App {
101
101
} ;
102
102
103
103
let primary_db_config = r2d2:: Pool :: builder ( )
104
- . max_size ( config. db . primary_max_pool_size ( ) )
104
+ . max_size ( config. db . primary . pool_size )
105
105
. min_idle ( config. db . primary . min_idle )
106
106
. connection_timeout ( Duration :: from_secs ( db_connection_timeout) )
107
107
. connection_customizer ( Box :: new ( primary_db_connection_config) )
Original file line number Diff line number Diff line change @@ -32,17 +32,6 @@ impl DatabasePools {
32
32
pub fn are_all_read_only ( & self ) -> bool {
33
33
self . primary . read_only_mode
34
34
}
35
-
36
- pub fn primary_max_pool_size ( & self ) -> u32 {
37
- self . primary . pool_size
38
- }
39
-
40
- pub fn replica_max_pool_size ( & self ) -> u32 {
41
- self . replica
42
- . as_ref ( )
43
- . map ( |config| config. pool_size )
44
- . unwrap_or ( Self :: DEFAULT_POOL_SIZE )
45
- }
46
35
}
47
36
48
37
impl DatabasePools {
You can’t perform that action at this time.
0 commit comments