prefetch: remove check misses after fetching from server

Summary: We don't really need to check misses here as neither of request fucnctions return misses after fetching from the server. They raise exception if there are any misses.

Differential Revision: D13908252

fbshipit-source-id: 80b6e4fb79b419b5e6d3b343b3bd46d3f8dc7d3c
This commit is contained in:
Aida Getoeva 2019-02-06 10:23:06 -08:00 committed by Facebook Github Bot
parent 996ac6da37
commit 562b9d1884

View File

@ -845,9 +845,7 @@ class fileserverclient(object):
start = time.time()
with self.ui.timesection("fetchingfiles"):
missingids = self.request(missingids)
if missingids:
raise error.Abort(_("unable to download %d files") % len(missingids))
self.request(missingids)
fetchcost += time.time() - start
if not batchlfsdownloads and dolfsprefetch:
self._lfsprefetch(fileids)