refactor var name

This commit is contained in:
Ulric Qin 2022-06-24 17:29:06 +08:00
parent f3b2569d3b
commit fe5a0f71b9
1 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ func (r *InputReader) Start() {
go r.read()
// start collector instance
go r.startInstance()
go r.startInput()
}
func (r *InputReader) Stop() {
@ -46,7 +46,7 @@ func (r *InputReader) Stop() {
r.input.Drop()
}
func (r *InputReader) startInstance() {
func (r *InputReader) startInput() {
interval := config.GetInterval()
if r.input.GetInterval() > 0 {
interval = time.Duration(r.input.GetInterval())