Skip to content

Consider adding a function that checks for exchange existence and is a predicate #60

@DrTom

Description

@DrTom

If langohr-exchange/declare-passive is used to find out about an non existing exchange it will throw an IO Error, if there is no such exchange. This is cumbersome, a falsy return value would appear to me more useful.
At any rate, it will also close the used channel and renders it useless:
com.rabbitmq.client.AlreadyClosedException: channel is already closed due to channel error; protocol ...
This behavior is very annoying; in particular in the context of automatic connection recovery etc.

This is true for langohr 3.0.0-rc3.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions