diff options
author | Kali Kaneko <kali@leap.se> | 2016-04-18 11:32:18 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2016-04-18 11:32:18 -0400 |
commit | bc465c34afe6e86b7fc8d7c690b76aa5e23d6a13 (patch) | |
tree | bf5bdeb244fe4569336ee48b32cb4db0d727c373 /scripts/profiling/mail | |
parent | 55548cf947966bcbb9a496e523a3f802b0f0b55f (diff) | |
parent | d5974f61df6ca640dde69903976d4721b6d88007 (diff) |
Merge tag '0.8.0'
Tag soledad version 0.8.0
Diffstat (limited to 'scripts/profiling/mail')
-rw-r--r-- | scripts/profiling/mail/mx.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/profiling/mail/mx.py b/scripts/profiling/mail/mx.py index b6a1e5cf..55084a40 100644 --- a/scripts/profiling/mail/mx.py +++ b/scripts/profiling/mail/mx.py @@ -5,7 +5,7 @@ import timeit from leap.keymanager import openpgp -from leap.soledad.common.couch import CouchDocument +from leap.soledad.common.document import ServerDocument from leap.soledad.common.crypto import ( EncryptionSchemes, ENC_JSON_KEY, @@ -47,7 +47,7 @@ def get_enc_json(pubkey, message): def get_new_doc(enc_json): - doc = CouchDocument(doc_id=str(uuid.uuid4())) + doc = ServerDocument(doc_id=str(uuid.uuid4())) doc.content = { 'incoming': True, ENC_SCHEME_KEY: EncryptionSchemes.PUBKEY, @@ -71,6 +71,7 @@ def put_lots_of_messages(db, number): log("Populating database with %d encrypted messages... " % number, line_break=False) pubkey = get_pubkey() + def _put_one_message(): put_one_message(pubkey, db) time = timeit.timeit(_put_one_message, number=number) |