mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka.git
synced 2025-11-02 19:47:55 +00:00
Fix link issues when building in clang
This commit is contained in:
@@ -43,9 +43,9 @@ namespace cppkafka {
|
||||
class CPPKAFKA_API BackoffPerformer {
|
||||
public:
|
||||
using TimeUnit = std::chrono::milliseconds;
|
||||
static constexpr TimeUnit DEFAULT_INITIAL_BACKOFF{100};
|
||||
static constexpr TimeUnit DEFAULT_BACKOFF_STEP{50};
|
||||
static constexpr TimeUnit DEFAULT_MAXIMUM_BACKOFF{1000};
|
||||
static const TimeUnit DEFAULT_INITIAL_BACKOFF;
|
||||
static const TimeUnit DEFAULT_BACKOFF_STEP;
|
||||
static const TimeUnit DEFAULT_MAXIMUM_BACKOFF;
|
||||
|
||||
/**
|
||||
* The backoff policy to use
|
||||
|
||||
@@ -34,6 +34,10 @@ using std::min;
|
||||
|
||||
namespace cppkafka {
|
||||
|
||||
const BackoffPerformer::TimeUnit BackoffPerformer::DEFAULT_INITIAL_BACKOFF{100};
|
||||
const BackoffPerformer::TimeUnit BackoffPerformer::DEFAULT_BACKOFF_STEP{50};
|
||||
const BackoffPerformer::TimeUnit BackoffPerformer::DEFAULT_MAXIMUM_BACKOFF{1000};
|
||||
|
||||
BackoffPerformer::BackoffPerformer()
|
||||
: initial_backoff_(DEFAULT_INITIAL_BACKOFF),
|
||||
backoff_step_(DEFAULT_BACKOFF_STEP), maximum_backoff_(DEFAULT_MAXIMUM_BACKOFF),
|
||||
|
||||
Reference in New Issue
Block a user