1.statistics log

2. Handle exception : etcd keepalive failed
This commit is contained in:
wenxu12345
2022-03-09 11:25:51 +08:00
parent 0e575a9366
commit c4554cb4e9
5 changed files with 19 additions and 8 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ func Init(rpcPort int) {
}
func init() {
producer = kafka.NewKafkaProducer(config.Config.Kafka.Ws2mschat.Addr, config.Config.Kafka.Ws2mschat.Topic)
statistics.NewStatistics(&count, config.Config.ModuleName.PushName, fmt.Sprintf("%d second push to msg_gateway count", 10), 10)
statistics.NewStatistics(&count, config.Config.ModuleName.PushName, fmt.Sprintf("%d second push to msg_gateway count", 300), 300)
}
func Run() {