Skip to content

Commit

Permalink
extensions: add a couple static registration macros (#12478)
Browse files Browse the repository at this point in the history
Commit Message: add a couple static registration macros
Additional Description: needed for registration in static library environments.
Risk Level: low
Testing: local

Signed-off-by: Jose Nino <jnino@lyft.com>
  • Loading branch information
junr03 committed Aug 5, 2020
1 parent 598e76a commit 8d3902a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/common/upstream/static_cluster.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,7 @@ class StaticClusterFactory : public ClusterFactoryImplBase {
Stats::ScopePtr&& stats_scope) override;
};

DECLARE_FACTORY(StaticClusterFactory);

} // namespace Upstream
} // namespace Envoy
2 changes: 2 additions & 0 deletions source/extensions/stat_sinks/statsd/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ class StatsdSinkFactory : Logger::Loggable<Logger::Id::config>,
std::string name() const override;
};

DECLARE_FACTORY(StatsdSinkFactory);

} // namespace Statsd
} // namespace StatSinks
} // namespace Extensions
Expand Down

0 comments on commit 8d3902a

Please sign in to comment.