delete no used code
This commit is contained in:
parent
d0e6788724
commit
6d27da8ad8
|
@ -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"
|
||||
|
|
|
@ -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)
|
||||
})
|
||||
|
|
|
@ -36,9 +36,8 @@ type Options struct {
|
|||
}
|
||||
|
||||
type GlobalOpt struct {
|
||||
QueueMaxSize int
|
||||
QueuePopSize int
|
||||
SleepInterval int64
|
||||
QueueMaxSize int
|
||||
QueuePopSize int
|
||||
}
|
||||
|
||||
type WriterType struct {
|
||||
|
|
Loading…
Reference in New Issue