Skip to content

Commit a1a621d

Browse files
committed
Remove unnecessaru code
1 parent c9bc2ec commit a1a621d

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

ydb/library/yql/dq/actors/spilling/channel_storage.cpp

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,8 @@ namespace {
2222

2323
class TDqChannelStorage : public IDqChannelStorage {
2424
public:
25-
TDqChannelStorage(TTxId txId, ui64 channelId, TWakeUpCallback&& wakeUp, TActorSystem* actorSystem, bool isConcurrent) {
26-
if (isConcurrent) {
27-
SelfActor_ = CreateDqChannelStorageActor(txId, channelId, std::move(wakeUp), actorSystem);
28-
} else {
29-
SelfActor_ = CreateDqChannelStorageActor(txId, channelId, std::move(wakeUp), actorSystem);
30-
}
25+
TDqChannelStorage(TTxId txId, ui64 channelId, TWakeUpCallback&& wakeUp, TActorSystem* actorSystem) {
26+
SelfActor_ = CreateDqChannelStorageActor(txId, channelId, std::move(wakeUp), actorSystem);
3127
TlsActivationContext->AsActorContext().RegisterWithSameMailbox(SelfActor_->GetActor());
3228
}
3329

@@ -59,7 +55,7 @@ class TDqChannelStorage : public IDqChannelStorage {
5955

6056
IDqChannelStorage::TPtr CreateDqChannelStorage(TTxId txId, ui64 channelId, IDqChannelStorage::TWakeUpCallback wakeUp, TActorSystem* actorSystem)
6157
{
62-
return new TDqChannelStorage(txId, channelId, std::move(wakeUp), actorSystem, false /*isConcurrent*/);
58+
return new TDqChannelStorage(txId, channelId, std::move(wakeUp), actorSystem);
6359
}
6460

6561
} // namespace NYql::NDq

0 commit comments

Comments
 (0)