Skip to content

Replace SessionManager by SessionFactory #1477

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions cloud/blockstore/libs/daemon/common/bootstrap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -329,13 +329,13 @@ void TBootstrapBase::Init()

STORAGE_INFO("StorageProvider initialized");

TSessionManagerOptions sessionManagerOptions;
sessionManagerOptions.StrictContractValidation
TSessionFactoryOptions sessionFactoryOptions;
sessionFactoryOptions.StrictContractValidation
= Configs->ServerConfig->GetStrictContractValidation();
sessionManagerOptions.DefaultClientConfig
sessionFactoryOptions.DefaultClientConfig
= Configs->EndpointConfig->GetClientConfig();
sessionManagerOptions.HostProfile = Configs->HostPerformanceProfile;
sessionManagerOptions.TemporaryServer = Configs->Options->TemporaryServer;
sessionFactoryOptions.HostProfile = Configs->HostPerformanceProfile;
sessionFactoryOptions.TemporaryServer = Configs->Options->TemporaryServer;

if (!KmsKeyProvider) {
KmsKeyProvider = CreateKmsKeyProviderStub();
Expand All @@ -345,7 +345,7 @@ void TBootstrapBase::Init()
Logging,
CreateEncryptionKeyProvider(KmsKeyProvider));

auto sessionManager = CreateSessionManager(
auto sessionFactory = CreateSessionFactory(
Timer,
Scheduler,
Logging,
Expand All @@ -357,9 +357,9 @@ void TBootstrapBase::Init()
StorageProvider,
encryptionClientFactory,
Executor,
sessionManagerOptions);
sessionFactoryOptions);

STORAGE_INFO("SessionManager initialized");
STORAGE_INFO("SessionFactory initialized");

THashMap<NProto::EClientIpcType, IEndpointListenerPtr> endpointListeners;

Expand Down Expand Up @@ -571,7 +571,7 @@ void TBootstrapBase::Init()
ServerStats,
Executor,
EndpointEventHandler,
std::move(sessionManager),
std::move(sessionFactory),
std::move(endpointStorage),
std::move(endpointListeners),
std::move(nbdDeviceFactory),
Expand Down
Loading
Loading