Skip to content

Commit

Permalink
Golint checker
Browse files Browse the repository at this point in the history
  • Loading branch information
GuoYL123 committed Feb 12, 2020
1 parent 01f662a commit 43f0c77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/resource/v1/kv_resource.go
Expand Up @@ -217,7 +217,7 @@ func returnData(rctx *restful.Context, domain interface{}, project string, label
}
}

//RecordPollingDetail to record data after get or list
//GenPollingDetail to generate data after get or list
func GenPollingDetail(context *restful.Context, revStr, wait, domain, project string, labels map[string]string, limit, offset int64, insID string) *model.PollingDetail {
data := &model.PollingDetail{}
data.ID = uuid.NewV4().String()
Expand Down
2 changes: 1 addition & 1 deletion server/service/mongo/record/polling_detail_service.go
Expand Up @@ -17,7 +17,7 @@ func (s *Service) RecordSuccess(ctx context.Context, detail *model.PollingDetail
return CreateOrUpdateRecord(ctx, detail)
}

//RecordSuccess record success
//RecordFailed record failed
func (s *Service) RecordFailed(ctx context.Context, detail *model.PollingDetail, respStatus int, respData string) (*model.PollingDetail, error) {
detail.ResponseCode = respStatus
detail.ResponseBody = respData
Expand Down

0 comments on commit 43f0c77

Please sign in to comment.