Show More
@@ -29,12 +29,8 b' class wirestore(remotestore.remotestore)' | |||||
29 | '''For each hash, return 0 if it is available, other values if not. |
|
29 | '''For each hash, return 0 if it is available, other values if not. | |
30 | It is usually 2 if the largefile is missing, but might be 1 the server |
|
30 | It is usually 2 if the largefile is missing, but might be 1 the server | |
31 | has a corrupted copy.''' |
|
31 | has a corrupted copy.''' | |
32 | batch = self.remote.batch() |
|
32 | batch = self.remote.iterbatch() | |
33 | futures = {} |
|
|||
34 | for hash in hashes: |
|
33 | for hash in hashes: | |
35 |
|
|
34 | batch.statlfile(hash) | |
36 | batch.submit() |
|
35 | batch.submit() | |
37 | retval = {} |
|
36 | return dict(zip(hashes, batch.results())) | |
38 | for hash in hashes: |
|
|||
39 | retval[hash] = futures[hash].value |
|
|||
40 | return retval |
|
General Comments 0
You need to be logged in to leave comments.
Login now