|
@@ -7,19 +7,16 @@ import (
|
|
|
"github.com/importcjj/sensitive"
|
|
|
"github.com/prometheus/client_golang/prometheus"
|
|
|
"github.com/prometheus/client_golang/prometheus/promhttp"
|
|
|
- "go.mongodb.org/mongo-driver/bson/primitive"
|
|
|
"google.golang.org/grpc"
|
|
|
"gopkg.in/olivere/elastic.v1"
|
|
|
- "gopkg.in/yaml.v2"
|
|
|
+ "gopkg.in/yaml.v3"
|
|
|
"io/ioutil"
|
|
|
"log"
|
|
|
- "math/big"
|
|
|
"net"
|
|
|
"net/http"
|
|
|
"regexp"
|
|
|
"sensitiveWords.udp/proto_grpc"
|
|
|
"sensitiveWords.udp/util"
|
|
|
- "strconv"
|
|
|
"strings"
|
|
|
)
|
|
|
|
|
@@ -115,6 +112,9 @@ var (
|
|
|
|
|
|
func main() {
|
|
|
|
|
|
+
|
|
|
+ log.Println("main ...")
|
|
|
+ return
|
|
|
//淡赌跑断
|
|
|
if YamlConfig.IsAddTask == 0 {
|
|
|
initSensitiveWordsData() //初始化敏感词数据
|