Skip to content

Commit

Permalink
WIP: Workaround service link error.
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisCummins committed May 20, 2021
1 parent abe23a4 commit 30f373f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions compiler_gym/service/runtime/CompilerGymServiceImpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,12 @@ grpc::Status CompilerGymService<CompilationSessionType>::GetSpaces(grpc::ServerC
const GetSpacesRequest* request,
GetSpacesReply* reply) {
VLOG(2) << "GetSpaces()";
// *reply->mutable_action_space_list() = {actionSpaces_.begin(), actionSpaces_.end()};
// *reply->mutable_observation_space_list() = {observationSpaces_.begin(),
// observationSpaces_.end()};
for (const auto& actionSpace : actionSpaces_) {
*reply->add_action_space_list() = actionSpace;
}
for (const auto& observationSpace : observationSpaces_) {
*reply->add_observation_space_list() = observationSpace;
}
return grpc::Status::OK;
}

Expand Down

0 comments on commit 30f373f

Please sign in to comment.