Hotfix for change of from_random to FromRandom (#4909)

This commit is contained in:
Yuhong Guo
2019-05-31 16:41:32 +08:00
committed by Hao Chen
parent 1f0809e2b4
commit 0066d7cf2a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -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;