summaryrefslogtreecommitdiff
path: root/client/src/leap/soledad/client/http_target/support.py
diff options
context:
space:
mode:
authorVictor Shyba <victor.shyba@gmail.com>2015-08-21 12:52:12 -0300
committerVictor Shyba <victor.shyba@gmail.com>2015-08-26 17:20:22 -0300
commit23ea0193a521a1f5cb539a342be594b7b7acedcf (patch)
tree9b13ff068df7601de6947a8f28808c9b7f67ee85 /client/src/leap/soledad/client/http_target/support.py
parentde73fc6969433a69ec6ba12ec508c3c93b83fcc6 (diff)
[bug] reduce memory usage by consuming single doc
Preparing many docs is useful for batching only. As we are sendind one by one I will leave prepare_one_doc method to do the encrypt as the docs goes to upload. Also fixes method name as kaliy suggested.
Diffstat (limited to 'client/src/leap/soledad/client/http_target/support.py')
-rw-r--r--client/src/leap/soledad/client/http_target/support.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/leap/soledad/client/http_target/support.py b/client/src/leap/soledad/client/http_target/support.py
index 5daabb61..44cd7089 100644
--- a/client/src/leap/soledad/client/http_target/support.py
+++ b/client/src/leap/soledad/client/http_target/support.py
@@ -167,12 +167,12 @@ class RequestBody(object):
self.entries.append(entry)
return len(entry)
- def remove(self, number=1):
+ def pop(self, number=1):
"""
Removes an amount of entries and returns it formatted and ready
to be sent.
- :param number: number of entries to remove and format
+ :param number: number of entries to pop and format
:type number: int
:return: formatted body ready to be sent