Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Leung <rleungx@gmail.com>
  • Loading branch information
rleungx committed Dec 22, 2023
1 parent 576856d commit c46aadf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions pkg/versioninfo/versioninfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import (
"go.uber.org/zap"
)

// Status is the status of PD server.
// NOTE: This type is exported by HTTP API. Please pay more attention when modifying it.
type Status struct {
BuildTS string `json:"build_ts"`
Expand Down
2 changes: 1 addition & 1 deletion server/api/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func newStatusHandler(svr *server.Server, rd *render.Render) *statusHandler {

// @Summary Get the build info of PD server.
// @Produce json
// @Success 200 {object} status
// @Success 200 {object} versioninfo.Status
// @Router /status [get]
func (h *statusHandler) GetPDStatus(w http.ResponseWriter, r *http.Request) {
version := versioninfo.Status{
Expand Down

0 comments on commit c46aadf

Please sign in to comment.