From: Marius Gavrilescu Date: Sat, 25 Jan 2014 21:03:18 +0000 (+0200) Subject: PUBLISH should be sent on regular Redis connection X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=c83f601708a81121bcb78ac4a131431c21a7a804;p=gruntmaster-page.git PUBLISH should be sent on regular Redis connection --- diff --git a/lib/Gruntmaster/Data.pm b/lib/Gruntmaster/Data.pm index 3855c08..5871a9c 100644 --- a/lib/Gruntmaster/Data.pm +++ b/lib/Gruntmaster/Data.pm @@ -17,11 +17,11 @@ sub dynsub{ } BEGIN { - for my $cmd (qw/multi exec smembers get hget hdel hset sadd srem incr hmset hsetnx/) { + for my $cmd (qw/multi exec smembers get hget hdel hset sadd srem incr hmset hsetnx publish/) { dynsub uc $cmd, sub { say "Arguments to \U$cmd: ", join ', ', @_; $redis->$cmd(@_) }; } - for my $cmd (qw/publish subscribe wait_for_messages/) { + for my $cmd (qw/subscribe wait_for_messages/) { dynsub uc $cmd, sub { say "Arguments to \U$cmd: ", join ', ', @_; $pubsub->$cmd(@_) }; } }