fix: clude api get redundant tags

This commit is contained in:
710leo 2020-04-23 10:35:23 +08:00
parent 9cb07f1252
commit 12d4024710
3 changed files with 5 additions and 4 deletions

View File

@ -94,7 +94,7 @@ func Rebuild(persistenceDir string, concurrency int) {
}
if err := RebuildFromDisk(dbDir, concurrency); err != nil {
logger.Errorf("rebuild index from local disk error:%+v", err)
logger.Warningf("rebuild index from local disk error:%+v", err)
}
}

View File

@ -265,10 +265,11 @@ func GetIndexByClude(c *gin.Context) {
excludeList := r.Exclude
step := 0
dsType := ""
tagList := make([]string, 0)
tagFilter := make(map[string]struct{})
for _, endpoint := range r.Endpoints {
tagList := make([]string, 0)
tagFilter := make(map[string]struct{})
if endpoint == "" {
logger.Debugf("invalid request: lack of endpoint param:%v\n", r)
stats.Counter.Set("xclude.miss", 1)

View File

@ -20,7 +20,7 @@ func NodataJudge(concurrency int) {
}
nodataJob = semaphore.NewSemaphore(concurrency)
t1 := time.NewTicker(time.Duration(9000) * time.Millisecond)
t1 := time.NewTicker(time.Duration(10) * time.Second)
nodataJudge()
for {
<-t1.C