Fix passing StringPiece to proto string setter in dispatcher_state_test.

PiperOrigin-RevId: 324930108
Change-Id: If7324887c5a8136cef4598150e97a701c83cfd1c
This commit is contained in:
Andrew Audibert 2020-08-04 18:04:38 -07:00 committed by TensorFlower Gardener
parent f9bb629525
commit f05d6a01ee

View File

@ -79,7 +79,7 @@ Status CreateNamedJob(int64 job_id, int64 dataset_id, NamedJobKey named_job_key,
}
Status CreateTask(int64 task_id, int64 job_id, int64 dataset_id,
StringPiece worker_address, DispatcherState* state) {
const std::string& worker_address, DispatcherState* state) {
Update update;
CreateTaskUpdate* create_task = update.mutable_create_task();
create_task->set_task_id(task_id);