mirror of
https://github.com/postgresml/pgcat.git
synced 2026-03-25 02:06:28 +00:00
Replace a few types with more developer-friendly names (#182)
* Replace a few types with more developer-friendly names * UserPool -> PoolIdentifier
This commit is contained in:
@@ -446,7 +446,7 @@ where
|
||||
}
|
||||
// Authenticate normal user.
|
||||
else {
|
||||
let pool = match get_pool(pool_name.clone(), username.clone()) {
|
||||
let pool = match get_pool(&pool_name, &username) {
|
||||
Some(pool) => pool,
|
||||
None => {
|
||||
error_response(
|
||||
@@ -648,7 +648,7 @@ where
|
||||
// Get a pool instance referenced by the most up-to-date
|
||||
// pointer. This ensures we always read the latest config
|
||||
// when starting a query.
|
||||
let pool = match get_pool(self.pool_name.clone(), self.username.clone()) {
|
||||
let pool = match get_pool(&self.pool_name, &self.username) {
|
||||
Some(pool) => pool,
|
||||
None => {
|
||||
error_response(
|
||||
|
||||
Reference in New Issue
Block a user