From 49845b97cb19fb521752270c50dc06739e1785c9 Mon Sep 17 00:00:00 2001 From: "Kali Kaneko (leap communications)" Date: Sun, 10 Apr 2016 19:26:37 -0400 Subject: revert initialization of soledad client --- soledad_sync.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'soledad_sync.py') diff --git a/soledad_sync.py b/soledad_sync.py index ca93206..76b01a9 100644 --- a/soledad_sync.py +++ b/soledad_sync.py @@ -3,11 +3,10 @@ from leap.soledad.client.api import Soledad from twisted.internet import defer # EDIT THIS TO MATCH YOUR TEST ENVIRONMENT ------------- -UUID = 'deadbeef' +UUID = 'deadbeef3' #HOST = 'http://futeisha:2323' HOST = 'http://localhost:2323' -#NUM_DOCS = 20 -NUM_DOCS = 1 +NUM_DOCS = 100 PAYLOAD = '/tmp/payload' # ------------------------------------------------------ @@ -32,11 +31,14 @@ def onSyncDone(result): print "SYNC DONE!", result -def upload_soledad_stuff(s): +def upload_soledad_stuff(): with open(PAYLOAD, 'r') as f: payload = f.read() + s = _get_soledad_instance_from_uuid( + UUID, 'pass', '/tmp/soledadsync', HOST, '', '') + def do_sync(_): d = s.sync() d.addCallback(onSyncDone) -- cgit v1.2.3