diff --git a/zquit/zquit.go b/zquit/zquit.go index 412b02ea43e0a7a176196c309fdfd1395ce68285..c90c4d597fbcae0f84209cb60182b2131ae49885 100644 --- a/zquit/zquit.go +++ b/zquit/zquit.go @@ -61,7 +61,7 @@ func (q *ZQuit) WaitInterrupt() { q.WaitInterruptPrePost(func() {}, func() {}) } -func (q *ZQuit) ZQuitMiddleware(c *gin.Context) { +func (q *ZQuit) Middleware(c *gin.Context) { if q.isQuit { c.Data(http.StatusServiceUnavailable, "text/plain", []byte("server shutdown")) return