优化全局数据存储方式,以节点 id 为 key 保存相关数据;修复节点下线监听未关闭问题
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package web
|
||||
|
||||
import (
|
||||
"log/slog"
|
||||
"proxy-server/gateway/env"
|
||||
"strconv"
|
||||
|
||||
@@ -16,7 +17,10 @@ func New() *Server {
|
||||
}
|
||||
|
||||
func (s *Server) Run() error {
|
||||
s.web = fiber.New()
|
||||
slog.Info("启动接口服务", "服务端口", env.AppWebPort)
|
||||
s.web = fiber.New(fiber.Config{
|
||||
DisableStartupMessage: true,
|
||||
})
|
||||
|
||||
// 配置中间件和路由
|
||||
Router(s.web)
|
||||
|
||||
Reference in New Issue
Block a user