Skip to content

Commit

Permalink
Merge pull request #6 from wgliyuli/main
Browse files Browse the repository at this point in the history
fix: the annotation format
  • Loading branch information
zenghur authored Jun 26, 2021
2 parents 418f574 + c17e6a6 commit 688cc56
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions collector/server/controller/profile/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,10 +306,7 @@ func downloadPath(bucket, endPoint, objectName string) string {

const limit = int32(100)

/*
getProfileModelList
Batch get profile model from tableStore
*/
// getProfileModelList batch get profile model from tableStore
func getProfileModelList(tb *env.TablestoreClient, req MergeProfileReq) ([]*profilemodel.Model, error) {
result, total, err := searchProfile(tb, req, 0)
if err != nil {
Expand Down Expand Up @@ -353,10 +350,7 @@ func getProfileModelList(tb *env.TablestoreClient, req MergeProfileReq) ([]*prof
return result, nil
}

/*
searchProfile
Search profile model from tableStore with request body
*/
// searchProfile search profile model from tableStore with request body
func searchProfile(tb *env.TablestoreClient, req MergeProfileReq, offset int32) ([]*profilemodel.Model, int64, error) {
if len(req.Service) > 0 {

Expand Down Expand Up @@ -452,10 +446,7 @@ func searchProfile(tb *env.TablestoreClient, req MergeProfileReq, offset int32)
return result, getRangeResp.TotalCount, nil
}

/*
unMarshalProfileRow
unmarshal information from tableStore row
*/
// unMarshalProfileRow unmarshal information from tableStore row
func unMarshalProfileRow(row *tablestore.Row) *profilemodel.Model {
result := new(profilemodel.Model)
ve := reflect.ValueOf(result).Elem()
Expand Down

0 comments on commit 688cc56

Please sign in to comment.