chore: pass SinkReplyBuilder and Transaction explicitly. Part7 (#3988)

Signed-off-by: Roman Gershman <roman@dragonflydb.io>
This commit is contained in:
Roman Gershman 2024-10-25 13:32:51 +03:00 committed by GitHub
parent a2a5e3179a
commit ef09052482
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 169 additions and 176 deletions

View file

@ -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