Skip to content

Commit

Permalink
PR improvements
Browse files Browse the repository at this point in the history
Rename `CleanTimeout` to `CleanInactive`
  • Loading branch information
belimawr committed Apr 8, 2024
1 parent e42ff3d commit 4ea05a5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions filebeat/input/filestream/internal/input-logfile/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,9 @@ func (cim *InputManager) Create(config *conf.C) (v2.Input, error) {

settings := struct {
ID string `config:"id"`
CleanTimeout time.Duration `config:"clean_inactive"`
CleanInactive time.Duration `config:"clean_inactive"`
HarvesterLimit uint64 `config:"harvester_limit"`
}{CleanTimeout: cim.DefaultCleanTimeout}
}{CleanInactive: cim.DefaultCleanTimeout}
if err := config.Unpack(&settings); err != nil {
return nil, err
}
Expand Down Expand Up @@ -230,7 +230,7 @@ func (cim *InputManager) Create(config *conf.C) (v2.Input, error) {
prospector: prospector,
harvester: harvester,
sourceIdentifier: sourceIdentifier,
cleanTimeout: settings.CleanTimeout,
cleanTimeout: settings.CleanInactive,
harvesterLimit: settings.HarvesterLimit,
}, nil
}
Expand Down
8 changes: 4 additions & 4 deletions filebeat/input/v2/input-cursor/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@ func (cim *InputManager) Create(config *conf.C) (v2.Input, error) {
}

settings := struct {
ID string `config:"id"`
CleanTimeout time.Duration `config:"clean_inactive"`
}{ID: "", CleanTimeout: cim.DefaultCleanTimeout}
ID string `config:"id"`
CleanInactive time.Duration `config:"clean_inactive"`
}{ID: "", CleanInactive: cim.DefaultCleanTimeout}
if err := config.Unpack(&settings); err != nil {
return nil, err
}
Expand All @@ -176,7 +176,7 @@ func (cim *InputManager) Create(config *conf.C) (v2.Input, error) {
userID: settings.ID,
sources: sources,
input: inp,
cleanTimeout: settings.CleanTimeout,
cleanTimeout: settings.CleanInactive,
}, nil
}

Expand Down

0 comments on commit 4ea05a5

Please sign in to comment.