Commit c9d8bb0c authored by Vladimir Barsukov's avatar Vladimir Barsukov
Browse files

zgo

parent 2b1f0890
...@@ -61,7 +61,7 @@ func (q *ZQuit) WaitInterrupt() { ...@@ -61,7 +61,7 @@ func (q *ZQuit) WaitInterrupt() {
q.WaitInterruptPrePost(func() {}, func() {}) q.WaitInterruptPrePost(func() {}, func() {})
} }
func (q *ZQuit) ZQuitMiddleware(c *gin.Context) { func (q *ZQuit) Middleware(c *gin.Context) {
if q.isQuit { if q.isQuit {
c.Data(http.StatusServiceUnavailable, "text/plain", []byte("server shutdown")) c.Data(http.StatusServiceUnavailable, "text/plain", []byte("server shutdown"))
return return
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment