xuzhiheng hace 2 años
padre
commit
58bacae3ff
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/util/utiltag.go

+ 1 - 1
src/util/utiltag.go

@@ -173,7 +173,7 @@ func searchData(index, esquery, sdataid string, i_maxnum int64, tags map[string]
 	esCon := elastic.VarEs.(*elastic.EsV7)
 	client := esCon.GetEsConn()
 	defer esCon.DestoryEsConn(client)
-	ctx, _ := context.WithTimeout(context.Background(), 60*time.Second)
+	ctx, _ := context.WithTimeout(context.Background(), 5*time.Minute)
 	cc := &MySource{
 		Querys: esquery,
 	}