diff --git a/lib/Myriad/Storage/Implementation/Memory.pm b/lib/Myriad/Storage/Implementation/Memory.pm index 9437377c..bff2f668 100644 --- a/lib/Myriad/Storage/Implementation/Memory.pm +++ b/lib/Myriad/Storage/Implementation/Memory.pm @@ -273,7 +273,7 @@ Returns a L which will resolve to . =cut -async method hash_set : Defer ($k, $hash_key, $v //= undef) { +async method hash_set : Defer ($k, $hash_key, $v = undef) { if(ref $hash_key eq 'HASH') { @{$data{$k}}{keys $hash_key->%*} = values $hash_key->%*; return 0 + keys $hash_key->%*; diff --git a/lib/Myriad/Storage/Implementation/Redis.pm b/lib/Myriad/Storage/Implementation/Redis.pm index bb57e4d1..ab1daeb5 100644 --- a/lib/Myriad/Storage/Implementation/Redis.pm +++ b/lib/Myriad/Storage/Implementation/Redis.pm @@ -313,7 +313,7 @@ Returns a L which will resolve to . =cut -async method hash_set ($k, $hash_key, $v //= undef) { +async method hash_set ($k, $hash_key, $v = undef) { if(ref $hash_key eq 'HASH') { await $redis->hmset($self->apply_prefix($k), $hash_key->%*); } else {