summaryrefslogtreecommitdiff
path: root/server/src/leap/soledad
diff options
context:
space:
mode:
authorVictor Shyba <victor1984@riseup.net>2017-03-20 21:35:59 -0300
committerdrebs <drebs@leap.se>2017-04-04 18:27:36 +0200
commit6d41e299538c9af9ef9d0536a423faa119113b49 (patch)
treeac935c14ef2febabab92ef92d2d909d282922c8d /server/src/leap/soledad
parent3e3c78b01a872fdb445a76250145c6e1a31056e2 (diff)
[refactor] quota and size configurable on constructor
Diffstat (limited to 'server/src/leap/soledad')
-rw-r--r--server/src/leap/soledad/server/_blobs.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/server/src/leap/soledad/server/_blobs.py b/server/src/leap/soledad/server/_blobs.py
index f50e3da8..4b0cd0de 100644
--- a/server/src/leap/soledad/server/_blobs.py
+++ b/server/src/leap/soledad/server/_blobs.py
@@ -99,9 +99,8 @@ class IBlobsBackend(Interface):
@implementer(IBlobsBackend)
class FilesystemBlobsBackend(object):
- quota = 200 * 1024 # in KB
-
- def __init__(self, blobs_path):
+ def __init__(self, blobs_path='/tmp/blobs/', quota=200 * 1024):
+ self.quota = quota
if not os.path.isdir(blobs_path):
os.makedirs(blobs_path)
self.path = blobs_path