mirror of
https://github.com/getnamingo/registry.git
synced 2025-07-22 02:25:59 +02:00
Small fix
This commit is contained in:
parent
f343ce2229
commit
a231b891df
2 changed files with 6 additions and 0 deletions
|
@ -86,5 +86,8 @@ Coroutine::create(function () use ($pool, $log) {
|
|||
$log->error('Database error: ' . $e->getMessage());
|
||||
} catch (Throwable $e) {
|
||||
$log->error('Error: ' . $e->getMessage());
|
||||
} finally {
|
||||
// Return the connection to the pool
|
||||
$pool->put($pdo);
|
||||
}
|
||||
});
|
|
@ -196,5 +196,8 @@ Coroutine::create(function () use ($pool, $log, $c) {
|
|||
$log->error('Database error: ' . $e->getMessage());
|
||||
} catch (Throwable $e) {
|
||||
$log->error('Error: ' . $e->getMessage());
|
||||
} finally {
|
||||
// Return the connection to the pool
|
||||
$pool->put($pdo);
|
||||
}
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue