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.
If
langohr-exchange/declare-passiveis used to find out about an non existing exchange it will throw an IO Error, if there is no such exchange. This is cumbersome, afalsyreturn 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.