diff options
| author | Sebastian Thiel <byronimo@gmail.com> | 2014-11-13 13:31:32 +0100 |
|---|---|---|
| committer | Sebastian Thiel <byronimo@gmail.com> | 2014-11-13 13:31:32 +0100 |
| commit | bf942a913d69eb2079f9e82888aaccf2f6222643 (patch) | |
| tree | 6b9489af08a47c52d9b61be628beb412eb7d934a /gitdb/db/mem.py | |
| parent | b64c771bcb2ec336dd549cfe9d072340c886f3c9 (diff) | |
| download | gitdb-bf942a913d69eb2079f9e82888aaccf2f6222643.tar.gz | |
Fully removed all async dependencies
Diffstat (limited to 'gitdb/db/mem.py')
| -rw-r--r-- | gitdb/db/mem.py | 8 |
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 |
