File tree Expand file tree Collapse file tree
grpc/include/userver/ugrpc/client/impl
universal/include/userver/utils Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ class UnaryCall final {
145145 }
146146
147147 if (impl::IsTaskCancelledByDeadlinePropagation ()) {
148- utils::unexpected{SpecialCaseCompletionType::kTimeoutDeadlinePropagated };
148+ return utils::unexpected{SpecialCaseCompletionType::kTimeoutDeadlinePropagated };
149149 }
150150
151151 return utils::unexpected{SpecialCaseCompletionType::kCancelled };
@@ -185,7 +185,7 @@ class UnaryCall final {
185185
186186 case ugrpc::impl::AsyncMethodInvocation::WaitStatus::kCancelled :
187187 if (impl::IsTaskCancelledByDeadlinePropagation ()) {
188- utils::unexpected{SpecialCaseCompletionType::kTimeoutDeadlinePropagated };
188+ return utils::unexpected{SpecialCaseCompletionType::kTimeoutDeadlinePropagated };
189189 }
190190 return utils::unexpected{SpecialCaseCompletionType::kCancelled };
191191
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ class bad_expected_access : public std::exception {
3030};
3131
3232template <class E >
33- class unexpected {
33+ class [[nodiscard]] unexpected {
3434public:
3535 unexpected (const E& error);
3636 unexpected (E&& error);
You can’t perform that action at this time.
0 commit comments