| 161 | } |
| 162 | |
| 163 | func (s *store) checkFile(userID int64, names []string) ([]string, error) { |
| 164 | log.Debugf("store checkFile, userID:%v", userID) |
| 165 | req := &meta.StoreCheckFileRequest{ |
| 166 | Header: &meta.RequestHeader{User: userID}, |
| 167 | Names: names, |
| 168 | } |
| 169 | |
| 170 | resp, err := s.api.CheckFile(s.ctx, req) |
| 171 | if err != nil { |
| 172 | return nil, errors.Trace(err) |
| 173 | } |
| 174 | log.Debugf("store checkFile finished, userID:%v, err:%v", userID, resp.Header.Error()) |
| 175 | |
| 176 | return resp.Names, errors.Trace(resp.Header.Error()) |
| 177 | } |
| 178 | |
| 179 | func (s *store) downloadFile(userID int64, names []string) (map[string][]byte, error) { |
| 180 | log.Debugf("store downloadFile, userID:%v", userID) |