Apply fmt

This commit is contained in:
Andrey Borodin 2021-04-19 22:25:36 +05:00
parent 8dace7befe
commit 9f78f451ec
4 changed files with 9 additions and 6 deletions

View File

@ -90,6 +90,7 @@ database "postgres" {
authentication "none"
storage "postgres_server"
storage_password "1"
pool "session"
pool_size 1
@ -116,7 +117,7 @@ database "postgres" {
client_max 107
}
user default {
authentication "scram-sha-256"
authentication "md5"
storage "postgres_server"

View File

@ -830,9 +830,10 @@ static inline int od_auth_backend_sasl_continue(od_server_t *server,
char *password;
if (client != NULL && client->password.password != NULL) {
od_error(&instance->logger, "auth", NULL, server,
"cannot authenticate with SCRAM secret from auth_query",
route->rule->db_name, route->rule->user_name);
od_error(
&instance->logger, "auth", NULL, server,
"cannot authenticate with SCRAM secret from auth_query",
route->rule->db_name, route->rule->user_name);
return -1;
} else if (route->rule->storage_password) {

View File

@ -101,7 +101,8 @@ int od_backend_ready(od_server_t *server, char *data, uint32_t size)
}
static inline int od_backend_startup(od_server_t *server,
kiwi_params_t *route_params, od_client_t *client)
kiwi_params_t *route_params,
od_client_t *client)
{
od_instance_t *instance = server->global->instance;
od_route_t *route = server->route;

View File

@ -7,7 +7,7 @@
* Scalable PostgreSQL connection pooler.
*/
int od_backend_connect(od_server_t *, char *, kiwi_params_t *, od_client_t*);
int od_backend_connect(od_server_t *, char *, kiwi_params_t *, od_client_t *);
int od_backend_connect_cancel(od_server_t *, od_rule_storage_t *, kiwi_key_t *);
void od_backend_close_connection(od_server_t *);
void od_backend_close(od_server_t *);