File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -552,7 +552,12 @@ export default class Redlock extends EventEmitter {
552
552
let result : number ;
553
553
try {
554
554
// Attempt to evaluate the script by its hash.
555
- const shaResult = await client . evalsha ( script . hash , keys . length , ...keys , ...args ) ;
555
+ const shaResult = await client . evalsha (
556
+ script . hash ,
557
+ keys . length ,
558
+ ...keys ,
559
+ ...args
560
+ ) ;
556
561
if ( typeof shaResult !== "number" ) {
557
562
throw new Error (
558
563
`Unexpected result of type ${ typeof shaResult } returned from redis.`
@@ -569,7 +574,12 @@ export default class Redlock extends EventEmitter {
569
574
) {
570
575
throw error ;
571
576
}
572
- const rawResult = await client . eval ( script . value , keys . length , ...keys , ...args ) ;
577
+ const rawResult = await client . eval (
578
+ script . value ,
579
+ keys . length ,
580
+ ...keys ,
581
+ ...args
582
+ ) ;
573
583
574
584
if ( typeof rawResult !== "number" ) {
575
585
throw new Error (
You can’t perform that action at this time.
0 commit comments