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 {
552552 let result : number ;
553553 try {
554554 // 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+ ) ;
556561 if ( typeof shaResult !== "number" ) {
557562 throw new Error (
558563 `Unexpected result of type ${ typeof shaResult } returned from redis.`
@@ -569,7 +574,12 @@ export default class Redlock extends EventEmitter {
569574 ) {
570575 throw error ;
571576 }
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+ ) ;
573583
574584 if ( typeof rawResult !== "number" ) {
575585 throw new Error (
You can’t perform that action at this time.
0 commit comments