Skip to content

Commit

Permalink
fix hasValue to has_value
Browse files Browse the repository at this point in the history
  • Loading branch information
jiayuehua committed Mar 15, 2022
1 parent c47b596 commit dbeff37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kvstore/raftex/RaftPart.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ folly::Future<nebula::cpp2::ErrorCode> RaftPart::appendLogAsync(ClusterID source
[this](AtomicOp opCB) -> std::optional<std::string> {
CHECK(opCB != nullptr);
auto opRet = opCB();
if (!opRet.hasValue()) {
if (!opRet.has_value()) {
// Failed
sendingPromise_.setOneSingleValue(nebula::cpp2::ErrorCode::E_RAFT_ATOMIC_OP_FAILED);
}
Expand Down

0 comments on commit dbeff37

Please sign in to comment.