no more websocket ack messages, just use lower-level backpressure
This commit is contained in:
parent
1b38a2ee30
commit
2e29825a3d
5 changed files with 74 additions and 77 deletions
|
@ -51,10 +51,6 @@ async def send(paths, host, password, lifetime, collection_name=None):
|
|||
loader = file_loader([(paths[i], fileMetadata[i]["size"]) for i in range(len(paths))])
|
||||
for data in loader:
|
||||
await ws.send(data)
|
||||
resp = await ws.recv()
|
||||
if resp != "ack":
|
||||
tqdm.write("unexpected response: {}".format(resp))
|
||||
exit(1)
|
||||
|
||||
parser = argparse.ArgumentParser(description="Upload files to transbeam")
|
||||
parser.add_argument("-l", "--lifetime", type=int, default=7, help="Lifetime in days for files (default 7)")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue