Skip to content

Commit

Permalink
feat: ensure job state lists are stored in the same slot.
Browse files Browse the repository at this point in the history
build: [release]
  • Loading branch information
lots0logs committed Jan 25, 2022
1 parent 0744921 commit d0ac7fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ abstract class Base {
protected static function _key( string ...$args ): string {
$key = implode( ':', $args );

return "hustle:{$key}";
return "{hustle}:{$key}";
}

protected static function _uuid4(): string {
Expand Down
2 changes: 1 addition & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Client extends Base {

public string $name;

public function __construct( ?string $name = 'default', array $redis_nodes = [] ) {
public function __construct( string $name = 'default', array $redis_nodes = [] ) {
$this->name = $name;

if ( ! $redis_nodes ) {
Expand Down

0 comments on commit d0ac7fa

Please sign in to comment.