diff pkg/imports/sr.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 98e2041c7ebf
children 8b75ac5e243e
line wrap: on
line diff
--- a/pkg/imports/sr.go	Mon Aug 05 16:30:55 2019 +0200
+++ b/pkg/imports/sr.go	Mon Aug 05 16:43:31 2019 +0200
@@ -35,7 +35,6 @@
 	shp "github.com/jonas-p/go-shp"
 
 	"gemma.intevation.de/gemma/pkg/common"
-	"gemma.intevation.de/gemma/pkg/misc"
 	"gemma.intevation.de/gemma/pkg/models"
 	"gemma.intevation.de/gemma/pkg/octree"
 )
@@ -733,7 +732,7 @@
 	mpz := make(octree.MultiPointZ, 0, 250000)
 	s := bufio.NewScanner(r)
 
-	warnLimiter := misc.WarningLimiter{Log: feedback.Warn, MaxWarnings: 100}
+	warnLimiter := common.WarningLimiter{Log: feedback.Warn, MaxWarnings: 100}
 	warn := warnLimiter.Warn
 	defer warnLimiter.Close()