Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
joedixon committed Nov 15, 2023
1 parent d0f8563 commit 55807aa
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/Jobs/PingInactiveConnections.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,13 @@ public function handle(ConnectionManager $connections): void
app(ApplicationProvider::class)
->all()
->each(function ($application) use ($connections) {
$connections
->for($application)
->all()
->each(function ($connection) use ($connections) {
collect($connections->for($application)->all())
->each(function ($connection) {
if ($connection->isActive()) {
return;
}

$connection->ping();
$connections->syncConnection($connection);
});
});
}
Expand Down

0 comments on commit 55807aa

Please sign in to comment.