-
Notifications
You must be signed in to change notification settings - Fork 0
Add publisher confirms to support quorum queues. #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: trunk
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,8 +2,6 @@ name: Downstream | |
|
|
||
| on: | ||
| workflow_dispatch: | ||
| branches: | ||
| - trunk | ||
| push: | ||
| branches: | ||
| - trunk | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| 2.6.6 | ||
| 2.6.9 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| require "acapi/errors/publish_confirmation_failed_error" | ||
| require "acapi/errors/remote_connection_unspecified_error" | ||
|
|
||
| module Acapi | ||
| module Errors | ||
| end | ||
| end |
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| module Acapi | ||
| module Errors | ||
| class PublishConfirmationFailedError < StandardError; end | ||
| end | ||
| end |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| module Acapi | ||
| module Errors | ||
| class RemoteConnectionUnspecifiedError < StandardError; end | ||
| end | ||
| end |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -32,15 +32,14 @@ def request(req_name, payload,timeout=1) | |
| end | ||
|
|
||
| def open_connection_for_request | ||
| if !@connection | ||
| @connection = Bunny.new(@uri, :heartbeat => 15) | ||
| @connection.start | ||
| end | ||
| return if @connection.present? && @connection.connected? | ||
| @connection = Bunny.new(@uri) | ||
| @connection.start | ||
|
Comment on lines
+36
to
+37
|
||
| end | ||
|
|
||
| def reconnect! | ||
| disconnect! | ||
| @connection = Bunny.new(@uri, :heartbeat => 15) | ||
| @connection = Bunny.new(@uri) | ||
| @connection.start | ||
| end | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The disconnect method doesn't clean up the new @p_channel instance variable introduced in this PR. When disconnect is called, @p_channel should also be set to nil to prevent potential issues on reconnection. Additionally, @channel and @eXchange should also be cleared to maintain consistency.