feat: Make the channel AutoBind default configurable

This commit is contained in:
Dennis Klein
2023-06-26 09:56:35 +02:00
committed by Alexey Rybalchenko
parent 42d27af20f
commit bfc665d76e
4 changed files with 20 additions and 3 deletions

View File

@@ -379,7 +379,11 @@ class Channel
static constexpr int DefaultRateLogging = 1;
static constexpr int DefaultPortRangeMin = 22000;
static constexpr int DefaultPortRangeMax = 23000;
#ifdef FAIRMQ_CHANNEL_DEFAULT_AUTOBIND
static constexpr bool DefaultAutoBind = FAIRMQ_CHANNEL_DEFAULT_AUTOBIND;
#else
static constexpr bool DefaultAutoBind = true;
#endif
friend std::ostream& operator<<(std::ostream& os, const Channel& ch)
{