Skip to content

Commit e7af94a

Browse files
committed
Replace SessionManager by SessionFactory
1 parent 44fc3ab commit e7af94a

9 files changed

+387
-592
lines changed

cloud/blockstore/libs/daemon/common/bootstrap.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -329,13 +329,13 @@ void TBootstrapBase::Init()
329329

330330
STORAGE_INFO("StorageProvider initialized");
331331

332-
TSessionManagerOptions sessionManagerOptions;
333-
sessionManagerOptions.StrictContractValidation
332+
TSessionFactoryOptions sessionFactoryOptions;
333+
sessionFactoryOptions.StrictContractValidation
334334
= Configs->ServerConfig->GetStrictContractValidation();
335-
sessionManagerOptions.DefaultClientConfig
335+
sessionFactoryOptions.DefaultClientConfig
336336
= Configs->EndpointConfig->GetClientConfig();
337-
sessionManagerOptions.HostProfile = Configs->HostPerformanceProfile;
338-
sessionManagerOptions.TemporaryServer = Configs->Options->TemporaryServer;
337+
sessionFactoryOptions.HostProfile = Configs->HostPerformanceProfile;
338+
sessionFactoryOptions.TemporaryServer = Configs->Options->TemporaryServer;
339339

340340
if (!KmsKeyProvider) {
341341
KmsKeyProvider = CreateKmsKeyProviderStub();
@@ -345,7 +345,7 @@ void TBootstrapBase::Init()
345345
Logging,
346346
CreateEncryptionKeyProvider(KmsKeyProvider));
347347

348-
auto sessionManager = CreateSessionManager(
348+
auto sessionFactory = CreateSessionFactory(
349349
Timer,
350350
Scheduler,
351351
Logging,
@@ -357,9 +357,9 @@ void TBootstrapBase::Init()
357357
StorageProvider,
358358
encryptionClientFactory,
359359
Executor,
360-
sessionManagerOptions);
360+
sessionFactoryOptions);
361361

362-
STORAGE_INFO("SessionManager initialized");
362+
STORAGE_INFO("SessionFactory initialized");
363363

364364
THashMap<NProto::EClientIpcType, IEndpointListenerPtr> endpointListeners;
365365

@@ -571,7 +571,7 @@ void TBootstrapBase::Init()
571571
ServerStats,
572572
Executor,
573573
EndpointEventHandler,
574-
std::move(sessionManager),
574+
std::move(sessionFactory),
575575
std::move(endpointStorage),
576576
std::move(endpointListeners),
577577
std::move(nbdDeviceFactory),

0 commit comments

Comments
 (0)