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:
Lev Kokotov
2022-10-01 11:25:59 -06:00
committed by GitHub
parent 24f5eec3ea
commit 7987c5ffad
4 changed files with 49 additions and 20 deletions

View File

@@ -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(