File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change 16
16
use Illuminate \Contracts \Queue \ShouldQueue ;
17
17
use Illuminate \Foundation \Bus \Dispatchable ;
18
18
use Illuminate \Queue \InteractsWithQueue ;
19
+ use Illuminate \Queue \Middleware \WithoutOverlapping ;
19
20
use Illuminate \Queue \SerializesModels ;
20
21
use Illuminate \Support \Arr ;
21
22
@@ -42,15 +43,15 @@ public function backoff(): int
42
43
43
44
public function __construct (public Server $ server ) {}
44
45
45
- // public function middleware(): array
46
- // {
47
- // return [(new WithoutOverlapping($this->server->uuid))];
48
- // }
46
+ public function middleware (): array
47
+ {
48
+ return [(new WithoutOverlapping ($ this ->server ->uuid ))];
49
+ }
49
50
50
- // public function uniqueId(): int
51
- // {
52
- // return $this->server->uuid;
53
- // }
51
+ public function uniqueId (): int
52
+ {
53
+ return $ this ->server ->uuid ;
54
+ }
54
55
55
56
public function handle ()
56
57
{
You can’t perform that action at this time.
0 commit comments