mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-07 10:56:49 +00:00
misc/coding_tools/make-canary-files.py: fix a suspicious capture reported by check-miscaptures (although it happens not to be a bug because the callback will be processed synchronously). refs #1556
This commit is contained in:
parent
22da015dd1
commit
3142538b0d
@ -116,7 +116,7 @@ def find_share_for_target(target):
|
||||
u = upload.Data(data, convergence)
|
||||
eu = upload.EncryptAnUploadable(u)
|
||||
d = eu.get_storage_index() # this happens to run synchronously
|
||||
def _got_si(si):
|
||||
def _got_si(si, data=data):
|
||||
if verbose: print "SI", base32.b2a(si),
|
||||
peerlist = get_permuted_peers(si)
|
||||
if peerlist[0] == target:
|
||||
|
Loading…
x
Reference in New Issue
Block a user