优化数据分析和日志记录,重构连接管理,添加对空缓冲区的处理
This commit is contained in:
@@ -96,20 +96,14 @@ func initLog() {
|
||||
|
||||
func startFwdServer(ctx context.Context) error {
|
||||
server := fwd.New(nil)
|
||||
|
||||
go func() {
|
||||
<-ctx.Done()
|
||||
server.Close()
|
||||
}()
|
||||
|
||||
server.Run()
|
||||
return nil
|
||||
}
|
||||
|
||||
func startMntServer(ctx context.Context) {
|
||||
|
||||
}
|
||||
|
||||
func startWebServer(ctx context.Context) {
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user