move a macro to cpp

This commit is contained in:
XieHan
2021-02-18 23:04:56 +08:00
parent 0af42982d6
commit ca50b9d7f3
2 changed files with 2 additions and 2 deletions
+2
View File
@@ -24,6 +24,8 @@
#include "ServiceGovernance.h"
#include "UpstreamManager.h"
#define GET_CURRENT_SECOND std::chrono::duration_cast<std::chrono::seconds>(std::chrono::steady_clock::now().time_since_epoch()).count()
#define DNS_CACHE_LEVEL_1 1
#define DNS_CACHE_LEVEL_2 2
-2
View File
@@ -33,8 +33,6 @@
#define MTTR_SECOND_DEFAULT 30
#define VIRTUAL_GROUP_SIZE 16
#define GET_CURRENT_SECOND std::chrono::duration_cast<std::chrono::seconds>(std::chrono::steady_clock::now().time_since_epoch()).count()
struct AddressParams
{
struct EndpointParams endpoint_params; ///< Connection config