Skip to content

Commit

Permalink
server: fix nil pointer dereference (#490)
Browse files Browse the repository at this point in the history
Signed-off-by: huanghaoyuanhhy <haoyuan.huang@zilliz.com>
  • Loading branch information
huanghaoyuanhhy authored Dec 31, 2024
1 parent 929a733 commit 6d40f12
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions core/backup_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,12 +264,7 @@ func (h *Handlers) handleGetRestore(c *gin.Context) (interface{}, error) {
if h.backupContext.params.HTTPCfg.SimpleResponse {
resp = SimpleRestoreResponse(resp)
}
log.Info("End to GetRestoreStateRequest",
zap.Any("code", resp.GetCode()),
zap.String("msg", resp.GetMsg()),
zap.Any("progress", resp.GetData().Progress),
zap.Any("stateCode", resp.GetData().StateCode),
)
log.Info("End to GetRestoreStateRequest", zap.Any("resp", resp))
c.JSON(http.StatusOK, resp)
return nil, nil
}
Expand Down

0 comments on commit 6d40f12

Please sign in to comment.