mirror of
https://github.com/wassname/ray.git
synced 2026-07-25 13:30:52 +08:00
Fix bug in which we were running out of file descriptors. (#91)
This commit is contained in:
committed by
Philipp Moritz
parent
ba53e4a43a
commit
dd39008532
@@ -94,6 +94,9 @@ class PlasmaClient(object):
|
||||
size (int): The size in bytes of the created buffer.
|
||||
metadata (buffer): An optional buffer encoding whatever metadata the user
|
||||
wishes to encode.
|
||||
|
||||
Raises:
|
||||
Exception: An exception is raised if the object could not be created.
|
||||
"""
|
||||
# Turn the metadata into the right type.
|
||||
metadata = bytearray("") if metadata is None else metadata
|
||||
|
||||
Reference in New Issue
Block a user