diff --git a/src/ray/object_manager/object_directory.cc b/src/ray/object_manager/object_directory.cc index f98630cfc74c..82ddfcb2ef28 100644 --- a/src/ray/object_manager/object_directory.cc +++ b/src/ray/object_manager/object_directory.cc @@ -148,8 +148,8 @@ ray::Status ObjectDirectory::LookupLocations(const ObjectID &object_id, JobID job_id = JobID::nil(); ray::Status status = gcs_client_->object_table().Lookup( job_id, object_id, - [this, callback](gcs::AsyncGcsClient *client, const ObjectID &object_id, - const std::vector &location_history) { + [callback](gcs::AsyncGcsClient *client, const ObjectID &object_id, + const std::vector &location_history) { // Build the set of current locations based on the entries in the log. std::unordered_set client_ids; std::vector locations_vector =