Sergey Korovin 7 жил өмнө
parent
commit
10e37371a8
1 өөрчлөгдсөн 5 нэмэгдсэн , 1 устгасан
  1. 5 1
      telegram.pl

+ 5 - 1
telegram.pl

@@ -47,7 +47,11 @@ Mojo::IOLoop->next_tick(sub
   $hup = AnyEvent->signal(signal => "HUP", cb => \&terminate);
 
   $config->{rabbit}->{on_error} = sub { $log->error("[rabbit]".@_); terminate() };
-  $rabbit = new rabbit_async($config->{rabbit}, sub
+
+  my $rabbit_args = $config->{rabbit};
+  $rabbit_args->{product} = $NAME;
+
+  $rabbit = new rabbit_async_rec($rabbit_args, sub
   {
     $rabbit->listen_queue($config->{queue}, $config->{bind}, \&incoming_message);
   });