Skip to content

Commit

Permalink
Change call sites to use fizz::DefaultFactory
Browse files Browse the repository at this point in the history
Summary: As titled

Reviewed By: zalecodez

Differential Revision: D59617762

fbshipit-source-id: 120ba87a0c24e2a2f1b3f956342f9e3cb49e2ccc
  • Loading branch information
Mingtao Yang authored and facebook-github-bot committed Jul 19, 2024
1 parent 61a92ce commit ea1c287
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions proxygen/lib/transport/PersistentFizzPskCache.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@

#pragma once

#include <fizz/backend/openssl/OpenSSLFactory.h>
#include <fizz/client/PskCache.h>
#include <fizz/client/PskSerializationUtils.h>
#include <fizz/protocol/DefaultFactory.h>
#include <fizz/protocol/Factory.h>
#include <wangle/client/persistence/FilePersistentCache.h>

Expand All @@ -28,7 +28,7 @@ class PersistentFizzPskCache : public fizz::client::PskCache {
PersistentFizzPskCache(const std::string& filename,
wangle::PersistentCacheConfig config,
std::unique_ptr<fizz::Factory> factory =
std::make_unique<fizz::openssl::OpenSSLFactory>())
std::make_unique<::fizz::DefaultFactory>())
: cache_(filename, std::move(config)), factory_(std::move(factory)) {
}

Expand Down
3 changes: 2 additions & 1 deletion proxygen/lib/transport/PersistentQuicPskCache.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <proxygen/lib/transport/PersistentFizzPskCache.h>

#include <fizz/client/PskSerializationUtils.h>
#include <fizz/protocol/DefaultFactory.h>
#include <folly/Optional.h>
#include <folly/json/dynamic.h>
#include <quic/fizz/client/handshake/QuicPskCache.h>
Expand All @@ -35,7 +36,7 @@ class PersistentQuicPskCache : public quic::QuicPskCache {
PersistentQuicPskCache(const std::string& filename,
wangle::PersistentCacheConfig config,
std::unique_ptr<fizz::Factory> factory =
std::make_unique<fizz::openssl::OpenSSLFactory>());
std::make_unique<::fizz::DefaultFactory>());

void setMaxPskUses(size_t maxUses);

Expand Down

0 comments on commit ea1c287

Please sign in to comment.