delete no used code

This commit is contained in:
Ulric Qin 2022-04-14 17:32:51 +08:00
parent d0e6788724
commit 6d27da8ad8
3 changed files with 2 additions and 9 deletions

View File

@ -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"

View File

@ -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)
})

View File

@ -36,9 +36,8 @@ type Options struct {
}
type GlobalOpt struct {
QueueMaxSize int
QueuePopSize int
SleepInterval int64
QueueMaxSize int
QueuePopSize int
}
type WriterType struct {