summaryrefslogtreecommitdiff
path: root/gitdb/db/mem.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2014-11-13 13:31:32 +0100
committerSebastian Thiel <byronimo@gmail.com>2014-11-13 13:31:32 +0100
commitbf942a913d69eb2079f9e82888aaccf2f6222643 (patch)
tree6b9489af08a47c52d9b61be628beb412eb7d934a /gitdb/db/mem.py
parentb64c771bcb2ec336dd549cfe9d072340c886f3c9 (diff)
downloadgitdb-bf942a913d69eb2079f9e82888aaccf2f6222643.tar.gz
Fully removed all async dependencies
Diffstat (limited to 'gitdb/db/mem.py')
-rw-r--r--gitdb/db/mem.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/gitdb/db/mem.py b/gitdb/db/mem.py
index a224546..1aa0d51 100644
--- a/gitdb/db/mem.py
+++ b/gitdb/db/mem.py
@@ -32,10 +32,7 @@ class MemoryDB(ObjectDBR, ObjectDBW):
"""A memory database stores everything to memory, providing fast IO and object
retrieval. It should be used to buffer results and obtain SHAs before writing
it to the actual physical storage, as it allows to query whether object already
- exists in the target storage before introducing actual IO
-
- **Note:** memory is currently not threadsafe, hence the async methods cannot be used
- for storing"""
+ exists in the target storage before introducing actual IO"""
def __init__(self):
super(MemoryDB, self).__init__()
@@ -62,9 +59,6 @@ class MemoryDB(ObjectDBR, ObjectDBW):
return istream
- def store_async(self, reader):
- raise UnsupportedOperation("MemoryDBs cannot currently be used for async write access")
-
def has_object(self, sha):
return sha in self._cache