rabbitmq-server/deps/rabbitmq_event_exchange/src
Michael Davis 52a0d70e15
Handle database timeouts when declaring exchanges
The spec of `rabbit_exchange:declare/7` needs to be updated to return
`{ok, Exchange} | {error, Reason}` instead of the old return value of
`rabbit_types:exchange()`. This is safe to do since `declare/7` is not
called by RPC - from the CLI or otherwise - outside of test suites, and
in test suites only through the CLI's `TestHelper.declare_exchange/7`.
Callers of this helper are updated in this commit.

Otherwise this commit updates callers to unwrap the `{ok, Exchange}`
and bubble up errors.
2024-07-22 16:02:03 -04:00
..
rabbit_event_exchange_decorator.erl More (c) source header updates #9969 2024-01-19 19:53:28 -05:00
rabbit_exchange_type_event.erl Handle database timeouts when declaring exchanges 2024-07-22 16:02:03 -04:00