Skip to content

Commit

Permalink
Merge pull request #330 from tom-binary/backcompat/signature_parameters
Browse files Browse the repository at this point in the history
Backward compatibility for perl 5.36.0
  • Loading branch information
tom-binary authored Jul 17, 2024
2 parents 772c193 + af322c4 commit 4825cac
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion lib/Myriad/Class.pm
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,6 @@ sub import {
current_sub
evalbytes
fc
module_true
postderef_qq
state
unicode_eval
Expand Down
2 changes: 1 addition & 1 deletion lib/Myriad/Storage/Implementation/Memory.pm
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ Returns a L<Future> 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->%*;
Expand Down
2 changes: 1 addition & 1 deletion lib/Myriad/Storage/Implementation/Redis.pm
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ Returns a L<Future> 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 {
Expand Down

0 comments on commit 4825cac

Please sign in to comment.