MCPcopy Index your code
hub / github.com/dearcode/candy / loadFriendList

Method loadFriendList

gate/store.go:116–124  ·  view source on GitHub ↗
(user int64)

Source from the content-addressed store, hash-verified

114}
115
116func (s *store) loadFriendList(user int64) ([]int64, error) {
117 req := &meta.StoreLoadFriendListRequest{User: user}
118 resp, err := s.api.LoadFriendList(s.ctx, req)
119 if err != nil {
120 return nil, errors.Trace(err)
121 }
122
123 return resp.Users, errors.Trace(resp.Header.Error())
124}
125
126func (s *store) createGroup(userID, groupID int64, name string) error {
127 log.Debugf("store createGroup, userID:%v groupID:%v groupName:%v", userID, groupID, name)

Callers 1

LoadFriendListMethod · 0.80

Calls 2

LoadFriendListMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected