diff --git a/source/extensions/transport_sockets/tls/cert_validator/spiffe/spiffe_validator.cc b/source/extensions/transport_sockets/tls/cert_validator/spiffe/spiffe_validator.cc index 54b16717a52ad..43e21cd07c9ad 100644 --- a/source/extensions/transport_sockets/tls/cert_validator/spiffe/spiffe_validator.cc +++ b/source/extensions/transport_sockets/tls/cert_validator/spiffe/spiffe_validator.cc @@ -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(); diff --git a/source/extensions/transport_sockets/tls/cert_validator/spiffe/spiffe_validator.h b/source/extensions/transport_sockets/tls/cert_validator/spiffe/spiffe_validator.h index 0962bdbc2990e..73d6260b544df 100644 --- a/source/extensions/transport_sockets/tls/cert_validator/spiffe/spiffe_validator.h +++ b/source/extensions/transport_sockets/tls/cert_validator/spiffe/spiffe_validator.h @@ -48,7 +48,7 @@ class SPIFFEValidator : public CertValidator, Logger::Loggable()), - 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); @@ -123,7 +123,6 @@ class SPIFFEValidator : public CertValidator, Logger::Loggable spiffe_data_; std::vector subject_alt_name_matchers_{}; - Event::Dispatcher& main_thread_dispatcher_; std::unique_ptr file_watcher_; Api::Api& api_; SslStats& stats_;