From c83f601708a81121bcb78ac4a131431c21a7a804 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Sat, 25 Jan 2014 23:03:18 +0200 Subject: [PATCH] PUBLISH should be sent on regular Redis connection --- lib/Gruntmaster/Data.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(@_) }; } } -- 2.39.2