<commit_before>package main

import (
	"gamesvc/charinit"
	"gamesvc/gameuser"
	"gamesvc/verify"

	"table"

	"github.com/davyxu/cellnet"
	"github.com/davyxu/cellnet/router"
	"github.com/davyxu/golog"
)

var log *golog.Logger = golog.New("main")

func main() {

	table.LoadServiceTable()

	pipe := cellnet.NewEventPipe()

	// DB消息投递
	evq := pipe.AddQueue()

	router.StartBackendConnector(pipe, table.GetPeerAddressList("svc->agent"), "svc->agent", "game")

	// 组消息初始化
	gameuser.Start()
	verify.Start(evq)
	charinit.Start(evq)

	pipe.Start()

	pipe.Wait()
}<commit_msg>屏蔽网关socket日志<commit_after>package main

import (
	"gamesvc/charinit"
	"gamesvc/gameuser"
	"gamesvc/verify"

	"table"

	"github.com/davyxu/cellnet"
	"github.com/davyxu/cellnet/router"
	"github.com/davyxu/cellnet/socket"
	"github.com/davyxu/golog"
)

var log *golog.Logger = golog.New("main")

func main() {

	table.LoadServiceTable()

	// 屏蔽socket层消息日志, 避免重复
	socket.SetMessageLogHook(func(info *socket.MessageLogInfo) bool {

		return false

	})

	pipe := cellnet.NewEventPipe()

	// DB消息投递
	evq := pipe.AddQueue()

	router.StartBackendConnector(pipe, table.GetPeerAddressList("svc->agent"), "svc->agent", "game")

	// 组消息初始化
	gameuser.Start()
	verify.Start(evq)
	charinit.Start(evq)

	pipe.Start()

	pipe.Wait()
}
{'fraction_non_alphanumeric': 0.1625, 'fraction_numerical': 0.0, 'mean_word_length': 4.545454545454546, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2614272', 'n_tokens_mistral': 574, 'n_tokens_neox': 559, 'n_words': 72}