From 8c28c52d41ec1c393b8a0777f12f57444cfb2eed Mon Sep 17 00:00:00 2001 From: Jason Rhinelander Date: Thu, 13 Aug 2020 15:55:51 -0300 Subject: [PATCH] inline constexpr lokimq constants --- lokimq/lokimq.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lokimq/lokimq.h b/lokimq/lokimq.h index 690277a..530fc7f 100644 --- a/lokimq/lokimq.h +++ b/lokimq/lokimq.h @@ -72,20 +72,20 @@ template class Batch; * use a longer keep-alive to a host call `connect()` first with the desired keep-alive time or pass * the send_option::keep_alive. */ -static constexpr auto DEFAULT_SEND_KEEP_ALIVE = 30s; +inline constexpr auto DEFAULT_SEND_KEEP_ALIVE = 30s; // The default timeout for connect_remote() -static constexpr auto REMOTE_CONNECT_TIMEOUT = 10s; +inline constexpr auto REMOTE_CONNECT_TIMEOUT = 10s; // The amount of time we wait for a reply to a REQUEST before calling the callback with // `false` to signal a timeout. -static constexpr auto DEFAULT_REQUEST_TIMEOUT = 15s; +inline constexpr auto DEFAULT_REQUEST_TIMEOUT = 15s; /// Maximum length of a category -static constexpr size_t MAX_CATEGORY_LENGTH = 50; +inline constexpr size_t MAX_CATEGORY_LENGTH = 50; /// Maximum length of a command -static constexpr size_t MAX_COMMAND_LENGTH = 200; +inline constexpr size_t MAX_COMMAND_LENGTH = 200; class CatHelper;