将 web 框架从 gin 切换到 fiber

This commit is contained in:
2025-05-15 10:04:28 +08:00
parent 8b7dc9e4ff
commit b29882f0a7
8 changed files with 46 additions and 24 deletions

View File

@@ -16,7 +16,7 @@ func mock() {
// waiting := rand.Intn(450) + 50
// time.Sleep(time.Duration(waiting) * time.Millisecond)
time.Sleep(200 * time.Millisecond)
w.Write([]byte("Hello World"))
_, _ = w.Write([]byte("Hello World"))
})
serv := &http.Server{