mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-11 12:25:53 +02:00
Lint (type inference): remove redundant type declarations (#2111)
This commit is contained in:
parent
9faa49c7e8
commit
e161507d08
20 changed files with 56 additions and 58 deletions
|
@ -82,7 +82,7 @@ func (pw *PluginWatcher) Start(tomb *tomb.Tomb) {
|
|||
|
||||
func (pw *PluginWatcher) watchPluginTicker(pluginName string) {
|
||||
var watchTime time.Duration
|
||||
var watchCount int = -1
|
||||
watchCount := -1
|
||||
// Threshold can be set : by time, by count, or both
|
||||
// if only time is set, honor it
|
||||
// if only count is set, put timer to 1 second and just check size
|
||||
|
@ -108,7 +108,7 @@ func (pw *PluginWatcher) watchPluginTicker(pluginName string) {
|
|||
}
|
||||
|
||||
ticker := time.NewTicker(watchTime)
|
||||
var lastSend time.Time = time.Now()
|
||||
lastSend := time.Now()
|
||||
for {
|
||||
select {
|
||||
case <-ticker.C:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue