From 6d27da8ad8b93b118ba717aa4cb22dba2fe724b0 Mon Sep 17 00:00:00 2001 From: Ulric Qin Date: Thu, 14 Apr 2022 17:32:51 +0800 Subject: [PATCH] delete no used code --- etc/server.conf | 2 -- src/server/config/config.go | 4 ---- src/server/writer/writer.go | 5 ++--- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/etc/server.conf b/etc/server.conf index 73d8325c..bd425485 100644 --- a/etc/server.conf +++ b/etc/server.conf @@ -184,8 +184,6 @@ MaxIdleConnsPerHost = 10 QueueMaxSize = 100000 # once pop samples number from queue QueuePopSize = 2000 -# unit: ms -SleepInterval = 50 [[Writers]] Url = "http://127.0.0.1:9090/api/v1/write" diff --git a/src/server/config/config.go b/src/server/config/config.go index 4bcef9ec..b9c81bc3 100644 --- a/src/server/config/config.go +++ b/src/server/config/config.go @@ -109,10 +109,6 @@ func MustLoad(fpaths ...string) { C.WriterOpt.QueuePopSize = 1000 } - if C.WriterOpt.SleepInterval <= 0 { - C.WriterOpt.SleepInterval = 50 - } - fmt.Println("heartbeat.ip:", C.Heartbeat.IP) fmt.Printf("heartbeat.interval: %dms\n", C.Heartbeat.Interval) }) diff --git a/src/server/writer/writer.go b/src/server/writer/writer.go index ef33fdf0..0bdff39c 100644 --- a/src/server/writer/writer.go +++ b/src/server/writer/writer.go @@ -36,9 +36,8 @@ type Options struct { } type GlobalOpt struct { - QueueMaxSize int - QueuePopSize int - SleepInterval int64 + QueueMaxSize int + QueuePopSize int } type WriterType struct {