Skip to content

Commit df1021b

Browse files
committed
[queues] YT-21996: Style fixes in producer client
commit_hash:f0bc2fa36fa94ba3e69729ccaa2d71f15f3b9330
1 parent 50324ec commit df1021b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

yt/yt/client/queue_client/producer_client.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,8 +352,8 @@ class TProducerSession
352352
return transaction->Commit();
353353
}))
354354
.Apply(BIND([this, this_ = MakeStrong(this)] (const TTransactionCommitResult&) {
355-
if (Options_.AcknowledgmentCallback) {
356-
Options_.AcknowledgmentCallback(LastSequenceNumber_);
355+
if (Options_.AckCallback) {
356+
Options_.AckCallback(LastSequenceNumber_);
357357
}
358358
}));
359359
})).AsVoid();

yt/yt/client/queue_client/producer_client.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ struct TProducerSessionOptions
4747
TBackoffStrategy BackoffStrategy = TBackoffStrategy(TExponentialBackoffOptions{});
4848

4949
//! Acknowledgment callback.
50-
TAckCallback AcknowledgmentCallback;
50+
TAckCallback AckCallback;
5151
};
5252

5353
struct IProducerSession
@@ -67,6 +67,7 @@ struct IProducerSession
6767
//! Cancel writing of all not flushed rows.
6868
virtual void Cancel() = 0;
6969
};
70+
7071
DEFINE_REFCOUNTED_TYPE(IProducerSession)
7172

7273
////////////////////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)