summaryrefslogtreecommitdiff
path: root/server/src
diff options
context:
space:
mode:
authorVictor Shyba <victor.shyba@gmail.com>2015-09-21 17:19:18 -0300
committerVictor Shyba <victor.shyba@gmail.com>2015-09-24 19:40:51 -0300
commitdf8c794395ee695ea1dfb30603a073b32b24ee58 (patch)
tree77cf94854f35bf0c11c2d2b4aa3fa2ef13a08f02 /server/src
parentcb7aa314ad4d47e9f32e9e111ec13976978ed02d (diff)
[refactor] init_caching instead of setting attr
As meskio found commented, setting this attribute directly is ugly, CouchDatabase now has a init_caching method for setting up cache instance.
Diffstat (limited to 'server/src')
-rw-r--r--server/src/leap/soledad/server/sync.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/leap/soledad/server/sync.py b/server/src/leap/soledad/server/sync.py
index e4fd1260..619be565 100644
--- a/server/src/leap/soledad/server/sync.py
+++ b/server/src/leap/soledad/server/sync.py
@@ -192,7 +192,7 @@ class SyncResource(http_app.SyncResource):
db = cache['instance']
else:
db = self.state.open_database(self.dbname)
- db._cache = cache
+ db.init_caching(cache)
cache['instance'] = db
# validate the information the client has about server replica
db.validate_gen_and_trans_id(