Mercurial > gemma
diff pkg/imports/agm.go @ 4171:5a650cde0574
Move warning limiter to common package to flesh up the misc package.
The remaining stuff in misc has dependencies to the config
and cannot be removed from there easily w/o introducing
cyclic imports. I have to rethink this.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 05 Aug 2019 16:43:31 +0200 |
parents | afabd52212d2 |
children | 8b75ac5e243e |
line wrap: on
line diff
--- a/pkg/imports/agm.go Mon Aug 05 16:30:55 2019 +0200 +++ b/pkg/imports/agm.go Mon Aug 05 16:43:31 2019 +0200 @@ -32,7 +32,6 @@ "time" "gemma.intevation.de/gemma/pkg/common" - "gemma.intevation.de/gemma/pkg/misc" "gemma.intevation.de/gemma/pkg/models" ) @@ -308,7 +307,7 @@ checkedGauges := map[models.Isrs]bool{} - warnLimiter := misc.WarningLimiter{Log: feedback.Warn, MaxWarnings: 100} + warnLimiter := common.WarningLimiter{Log: feedback.Warn, MaxWarnings: 100} warn := warnLimiter.Warn defer warnLimiter.Close()