Commit a99b00d613549b147bc8f25376303adc6bc83c9a

Authored by Patric Stout
1 parent 3aa49152

chore: initialize queue-size to 0 by default

This is purely for debugging. size_t is unsigned, and -1 looks
really weird in that case. As the default is DROP anyway, the value
really doesn't matter.
Showing 1 changed file with 1 additions and 1 deletions
src/ClientImpl.h
... ... @@ -72,7 +72,7 @@ public:
72 72 std::function<void(Error, std::string_view)> m_error_callback = [](Error, std::string_view) { /* empty */ }; ///< Error callback.
73 73  
74 74 Client::PublishQueueType m_publish_queue_type = Client::PublishQueueType::DROP; ///< The type of queue to use for the publish queue.
75   - size_t m_publish_queue_size = -1; ///< Size of the publish queue.
  75 + size_t m_publish_queue_size = 0; ///< Size of the publish queue.
76 76 std::deque<std::tuple<std::string, std::string, bool>> m_publish_queue; ///< Queue of publish messages to send to the broker.
77 77  
78 78 size_t m_send_queue_size = 1000; ///< Size of the send queue.
... ...