Skip to content

Commit

Permalink
Removed unneeded main_thread_dispatcher_
Browse files Browse the repository at this point in the history
  • Loading branch information
briansonnenberg committed Nov 7, 2024
1 parent 32ec2f7 commit 04d4499
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ void SPIFFEValidator::initializeCertificateRefresh(
SPIFFEValidator::SPIFFEValidator(const Envoy::Ssl::CertificateValidationContextConfig* config,
SslStats& stats,
Server::Configuration::CommonFactoryContext& context)
: main_thread_dispatcher_(context.mainThreadDispatcher()), api_(config->api()), stats_(stats),
: api_(config->api()), stats_(stats),
time_source_(context.timeSource()) {
ASSERT(config != nullptr);
allow_expired_certificate_ = config->allowExpiredCertificate();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class SPIFFEValidator : public CertValidator, Logger::Loggable<Logger::Id::secre
public:
SPIFFEValidator(SslStats& stats, Server::Configuration::CommonFactoryContext& context)
: spiffe_data_(std::make_shared<SpiffeData>()),
main_thread_dispatcher_(context.mainThreadDispatcher()), api_(context.api()), stats_(stats),
api_(context.api()), stats_(stats),
time_source_(context.timeSource()){};
SPIFFEValidator(const Envoy::Ssl::CertificateValidationContextConfig* config, SslStats& stats,
Server::Configuration::CommonFactoryContext& context);
Expand Down Expand Up @@ -123,7 +123,6 @@ class SPIFFEValidator : public CertValidator, Logger::Loggable<Logger::Id::secre
std::string trust_bundle_file_name_;
std::shared_ptr<SpiffeData> spiffe_data_;
std::vector<SanMatcherPtr> subject_alt_name_matchers_{};
Event::Dispatcher& main_thread_dispatcher_;
std::unique_ptr<Filesystem::Watcher> file_watcher_;
Api::Api& api_;
SslStats& stats_;
Expand Down

0 comments on commit 04d4499

Please sign in to comment.