Skip to content

Commit

Permalink
when register, keep the original redis options, only overwrite prefix (
Browse files Browse the repository at this point in the history
…#1161)

* when register horizon, keep the original redis options, only overwrite prefix

* delete space

* Update Horizon.php

Co-authored-by: Taylor Otwell <[email protected]>
  • Loading branch information
nthsky and taylorotwell authored Jul 11, 2022
1 parent 831f6e5 commit 93f5d74
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Horizon.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ public static function use($connection)
throw new Exception("Redis connection [{$connection}] has not been configured.");
}

config(['database.redis.horizon' => array_merge($config, [
'options' => ['prefix' => config('horizon.prefix') ?: 'horizon:'],
])]);
$config['options']['prefix'] = config('horizon.prefix') ?: 'horizon:';

config(['database.redis.horizon' => $config]);
}

/**
Expand Down

0 comments on commit 93f5d74

Please sign in to comment.