完成剩余模块 Context 超时控制改造
This commit is contained in:
@@ -18,7 +18,7 @@ func NewHandler(service *Service) *Handler {
|
||||
}
|
||||
|
||||
func (h *Handler) Summary(c *gin.Context) {
|
||||
item, err := h.service.Summary()
|
||||
item, err := h.service.Summary(c.Request.Context())
|
||||
if err != nil {
|
||||
writeDashboardError(c, err)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user