diff --git a/cmd/crowdsec/pour.go b/cmd/crowdsec/pour.go index adb072376..3f717e397 100644 --- a/cmd/crowdsec/pour.go +++ b/cmd/crowdsec/pour.go @@ -12,9 +12,7 @@ import ( ) func runPour(input chan types.Event, holders []leaky.BucketFactory, buckets *leaky.Buckets, cConfig *csconfig.Config) error { - var ( - count int - ) + count := 0 for { //bucket is now ready select { diff --git a/pkg/leakybucket/README.md b/pkg/leakybucket/README.md index 1d3f31575..4614eddba 100644 --- a/pkg/leakybucket/README.md +++ b/pkg/leakybucket/README.md @@ -158,7 +158,7 @@ Bayesian Conditions are built from: [This is not dry enough to have many details here, but:] -The bucket code is triggered by `InfiniBucketify` in `main.go`. +The bucket code is triggered by runPour in pour.go, by calling the `leaky.PourItemToHolders` function. There is one struct called buckets which is for now a `map[string]interface{}` that holds all buckets. The key of this map is derived from the filter configured for the bucket and its