Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Commit dfe0dbf

Browse files
committed
Updated mode
1 parent c6ab778 commit dfe0dbf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/TestCase.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,9 @@ protected function registerManagers()
230230
protected function registerStatisticsCollectors()
231231
{
232232
$this->app->singleton(StatisticsCollector::class, function () {
233-
$class = config("websockets.replication.modes.{$this->replicationMode}.collector");
233+
$mode = config('websockets.replication.mode', $this->replicationMode);
234+
235+
$class = config("websockets.replication.modes.{$mode}.collector");
234236

235237
return new $class;
236238
});

0 commit comments

Comments
 (0)