mirror of
https://github.com/wassname/ray.git
synced 2026-07-06 02:47:47 +08:00
Hotfix for change of from_random to FromRandom (#4909)
This commit is contained in:
@@ -16,7 +16,7 @@ class CoreWorkerTest : public ::testing::Test {
|
||||
|
||||
TEST_F(CoreWorkerTest, TestTaskArg) {
|
||||
// Test by-reference argument.
|
||||
ObjectID id = ObjectID::from_random();
|
||||
ObjectID id = ObjectID::FromRandom();
|
||||
TaskArg by_ref = TaskArg::PassByReference(id);
|
||||
ASSERT_TRUE(by_ref.IsPassedByReference());
|
||||
ASSERT_EQ(by_ref.GetReference(), id);
|
||||
|
||||
@@ -108,7 +108,7 @@ ray::Status ClientTable::Remove(const ClientID &client_id, DoneCallback done_cal
|
||||
}
|
||||
|
||||
ClientID GcsClient::Register(const std::string &ip, uint16_t port) {
|
||||
ClientID client_id = ClientID().from_random();
|
||||
ClientID client_id = ClientID::FromRandom();
|
||||
// TODO: handle client registration failure.
|
||||
ray::Status status = client_table().Add(std::move(client_id), ip, port, []() {});
|
||||
return client_id;
|
||||
|
||||
Reference in New Issue
Block a user