void Context::onGrpcReceive(uint32_t token, Buffer::InstancePtr response) {
  if (wasm_->onGrpcReceive_) {
    auto response_size = response->length();
    auto response_ptr = wasm_->copyBuffer(*response);
    wasm_->onGrpcReceive_(this, id_, token, response_ptr, response_size);
  }
  if (IsGrpcCallToken(token)) {
    grpc_call_request_.erase(token);
  }
}
void Context::onGrpcReceive(uint32_t token, Buffer::InstancePtr response) {
  if (wasm_->onGrpcReceive_) {
    auto response_size = response->length();
    auto response_ptr = wasm_->copyBuffer(*response);
    wasm_->onGrpcReceive_(this, id_, token, response_ptr, response_size);
  }
  if (IsGrpcCallToken(token)) {
    grpc_call_request_.erase(token);
  }
}