Skip to content

Commit

Permalink
Hotfix for change of from_random to FromRandom
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuhong Guo committed May 31, 2019
1 parent 1f0809e commit c3269f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ray/core_worker/core_worker_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/ray/raylet/mock_gcs_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c3269f1

Please sign in to comment.