mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 18:35:46 +02:00
chore: pass SinkReplyBuilder and Transaction explicitly. Part7 (#3988)
Signed-off-by: Roman Gershman <roman@dragonflydb.io>
This commit is contained in:
parent
a2a5e3179a
commit
ef09052482
5 changed files with 169 additions and 176 deletions
|
@ -47,14 +47,14 @@ using facade::kWrongTypeErr;
|
|||
|
||||
#ifndef GET_OR_SEND_UNEXPECTED
|
||||
|
||||
#define GET_OR_SEND_UNEXPECTED(expr) \
|
||||
({ \
|
||||
auto expr_res = (expr); \
|
||||
if (!expr_res) { \
|
||||
cntx->SendError(expr_res.error()); \
|
||||
return; \
|
||||
} \
|
||||
std::move(expr_res).value(); \
|
||||
#define GET_OR_SEND_UNEXPECTED(expr) \
|
||||
({ \
|
||||
auto expr_res = (expr); \
|
||||
if (!expr_res) { \
|
||||
builder->SendError(expr_res.error()); \
|
||||
return; \
|
||||
} \
|
||||
std::move(expr_res).value(); \
|
||||
})
|
||||
|
||||
#endif // GET_OR_SEND_UNEXPECTED
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue