将 web 框架从 gin 切换到 fiber
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user