Add entries to in-memory store on Put() (#7085)

This commit is contained in:
Edward Oakes
2020-03-04 10:17:27 -08:00
committed by GitHub
parent aa4861c2a0
commit 0abcca258f
19 changed files with 186 additions and 196 deletions
+3 -2
View File
@@ -40,8 +40,9 @@ class PlasmaEventHandler:
"""Process notifications."""
for object_id, object_size, metadata_size in messages:
if object_size > 0 and object_id in self._waiting_dict:
# This must be asynchronous to allow objects to be locally
# received
# This must be asynchronous because it runs on the main IO
# thread in the worker. If this is blocked, other messages
# won't be received.
self._loop.call_soon_threadsafe(_complete_future, self,
object_id)