Change Python's ObjectID to ObjectRef (#9353)

This commit is contained in:
Hao Chen
2020-07-10 17:49:04 +08:00
committed by GitHub
parent 6311e5a947
commit d49dadf891
91 changed files with 959 additions and 907 deletions
+2 -1
View File
@@ -27,7 +27,8 @@ class ChannelID:
channel_id_str: string representation of channel id
"""
self.channel_id_str = channel_id_str
self.object_qid = ray.ObjectID(channel_id_str_to_bytes(channel_id_str))
self.object_qid = ray.ObjectRef(
channel_id_str_to_bytes(channel_id_str))
def __eq__(self, other):
if other is None: