style: fix formatting issues

- Add missing newlines at end of files
- Fix indentation in ssl.go
- Remove extra blank lines

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
xfy 2026-04-30 13:42:53 +08:00
parent b1e1547e36
commit d269940d8b
10 changed files with 9 additions and 13 deletions

View File

@ -140,7 +140,6 @@ func TestPoolConcurrentSubmit(t *testing.T) {
for range 100 { for range 100 {
wg.Go(func() { wg.Go(func() {
_ = p.Submit(nil, func(_ *fasthttp.RequestCtx) { _ = p.Submit(nil, func(_ *fasthttp.RequestCtx) {
counter.Add(1) counter.Add(1)
}) })

View File

@ -447,7 +447,6 @@ func (s *Server) startSingleMode() error {
s.fastServer = s.createFastServer(serverCfg, s.handler) s.fastServer = s.createFastServer(serverCfg, s.handler)
s.running = true s.running = true
// 创建监听器并保存,用于热升级 // 创建监听器并保存,用于热升级
@ -578,7 +577,6 @@ func (s *Server) startVHostMode() error {
s.fastServer = s.createFastServer(serverCfg, s.handler) s.fastServer = s.createFastServer(serverCfg, s.handler)
s.running = true s.running = true
// 创建监听器并保存,用于热升级 // 创建监听器并保存,用于热升级
@ -678,7 +676,6 @@ func (s *Server) startMultiServerMode() error {
// 创建 fasthttp.Server // 创建 fasthttp.Server
fastSrv := s.createFastServer(serverCfg, h) fastSrv := s.createFastServer(serverCfg, h)
// 检查 SSL 配置 // 检查 SSL 配置
if serverCfg.SSL.Cert != "" && serverCfg.SSL.Key != "" { if serverCfg.SSL.Cert != "" && serverCfg.SSL.Key != "" {
tlsManager, err := ssl.NewTLSManager(&serverCfg.SSL) tlsManager, err := ssl.NewTLSManager(&serverCfg.SSL)