TD-1033: fix compile error

This commit is contained in:
Bomin Zhang 2020-08-02 09:55:17 +08:00
parent 4c8b5a8795
commit f7d6309550
1 changed files with 4 additions and 11 deletions

View File

@ -18,7 +18,7 @@
#include "taoserror.h" #include "taoserror.h"
#include "tglobal.h" #include "tglobal.h"
#include "tutil.h" #include "tutil.h"
#include "ttime.h" #include "osTime.h"
#include "tsocket.h" #include "tsocket.h"
#include "tbuffer.h" #include "tbuffer.h"
#include "mnode.h" #include "mnode.h"
@ -31,16 +31,9 @@
static sem_t tsExitSem; static sem_t tsExitSem;
static pthread_t tsTelemetryThread; static pthread_t tsTelemetryThread;
#if 1 #define TELEMETRY_SERVER "telemetry.taosdata.com"
#define TELEMETRY_SERVER "telemetry.taosdata.com" #define TELEMETRY_PORT 80
#define TELEMETRY_PORT 80 #define REPORT_INTERVAL 86400
#define REPORT_INTERVAL 86400
#else
#define TELEMETRY_SERVER "localhost"
#define TELEMETRY_PORT 80
#define REPORT_INTERVAL 5
#endif
static void beginObject(SBufferWriter* bw) { static void beginObject(SBufferWriter* bw) {
tbufWriteChar(bw, '{'); tbufWriteChar(bw, '{');