mirror of
https://github.com/wassname/ray.git
synced 2026-07-05 21:23:55 +08:00
Clean up unused Python code (#8755)
This commit is contained in:
committed by
GitHub
parent
c773824f4f
commit
7fa64f2b24
@@ -123,15 +123,13 @@ class SerializationContext:
|
||||
|
||||
def object_id_serializer(obj):
|
||||
self.add_contained_object_id(obj)
|
||||
owner_id = ""
|
||||
owner_address = ""
|
||||
worker = ray.worker.global_worker
|
||||
worker.check_connected()
|
||||
obj, owner_id, owner_address = (
|
||||
worker.core_worker.serialize_and_promote_object_id(obj))
|
||||
obj = id_serializer(obj)
|
||||
owner_id = id_serializer(owner_id) if owner_id else owner_id
|
||||
return (obj, owner_id, owner_address)
|
||||
return obj, owner_id, owner_address
|
||||
|
||||
def object_id_deserializer(serialized_obj):
|
||||
obj_id, owner_id, owner_address = serialized_obj
|
||||
|
||||
Reference in New Issue
Block a user