Skip to content
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

#41 Replace TMaybe to std::optional after update #81

Merged
merged 7 commits into from
Mar 6, 2024
Merged
2 changes: 1 addition & 1 deletion client/ydb_persqueue_core/impl/write_session_impl.cpp
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Поменяй на value_or

Copy link
Contributor Author

@antonporodnikov antonporodnikov Mar 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Исправил.

Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ NThreading::TFuture<void> TWriteSessionImpl::WaitEvent() {
void TWriteSessionImpl::WriteInternal(
TContinuationToken&&, std::string_view data, std::optional<ECodec> codec, ui32 originalSize, std::optional<ui64> seqNo, std::optional<TInstant> createTimestamp
) {
TInstant createdAtValue = message.CreateTimestamp_.has_value() ? *message.CreateTimestamp_ : TInstant::Now();
TInstant createdAtValue = createTimestamp.has_value() ? *createTimestamp : TInstant::Now();
bool readyToAccept = false;
size_t bufferSize = data.size();
with_lock(Lock) {
Expand Down
Loading