diff --git a/src/shrpx_worker.cc b/src/shrpx_worker.cc index 89c55e95..98201e81 100644 --- a/src/shrpx_worker.cc +++ b/src/shrpx_worker.cc @@ -181,10 +181,12 @@ void Worker::replace_downstream_config( std::vector>(groups.size()); std::map addr_groups_indexer; +#ifdef HAVE_MRUBY // TODO It is a bit less efficient because // mruby::create_mruby_context returns std::unique_ptr and we cannot // use std::make_shared. std::map> shared_mruby_ctxs; +#endif // HAVE_MRUBY for (size_t i = 0; i < groups.size(); ++i) { auto &src = groups[i];