stop: use graceful shutdown
This commit is contained in:
parent
b98513ad36
commit
c0fea38790
@ -58,6 +58,7 @@ func FooControllerHandler(ctx *framework.Context) error {
|
||||
}
|
||||
|
||||
func UserLoginController(ctx *framework.Context) error {
|
||||
time.Sleep(10 * time.Second)
|
||||
ctx.WriteJSON(http.StatusOK, "ok")
|
||||
return nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user