From 9273c60f3974df600456d7a240bd8a05de08e816 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrej=20Rama=C5=A1euski?= <andrej@x2.cz> Date: Fri, 4 Feb 2022 23:57:51 +0100 Subject: [PATCH] Redis only --- lib/CF/Helpers/Core.pm | 8 +------- openapi.yaml | 2 +- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/lib/CF/Helpers/Core.pm b/lib/CF/Helpers/Core.pm index a952083..999e8f5 100644 --- a/lib/CF/Helpers/Core.pm +++ b/lib/CF/Helpers/Core.pm @@ -208,13 +208,7 @@ sub register ($class, $self, $conf) { payload => $payload, }; - if ($self->cfg->{message_broker} eq 'redis' ) { - $self->redis->pubsub->notify( notify => encode_json($content) ); - } - else { - my $pubsub = Mojo::Pg::PubSub->new(pg => $self->pg); - $pubsub->json('notify')->notify( notify => $content ); - } + $self->redis->pubsub->notify( notify => encode_json($content) ); }); } diff --git a/openapi.yaml b/openapi.yaml index b012eb5..7492694 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -1,7 +1,7 @@ openapi: 3.0.3 info: - version: "2.7.0" + version: "2.7.2" title: CF Online description: CF Online license: -- GitLab