fix: clude api get redundant tags
This commit is contained in:
parent
9cb07f1252
commit
12d4024710
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue