mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 10:25:47 +02:00
fix(regtests): Bind to 127.0.0.1 and not localhost (#1937)
* fix(regtests): Bind to 127.0.0.1 and not localhost * Split start into start/serve
This commit is contained in:
parent
fe5c6968ea
commit
ab903612f1
3 changed files with 90 additions and 82 deletions
|
@ -20,13 +20,13 @@ using facade::kWrongTypeErr;
|
|||
|
||||
#ifndef RETURN_ON_ERR
|
||||
|
||||
#define RETURN_ON_ERR_T(T, x) \
|
||||
do { \
|
||||
std::error_code __ec = (x); \
|
||||
if (__ec) { \
|
||||
DLOG(ERROR) << "Error " << __ec << " while calling " #x; \
|
||||
return (T)(__ec); \
|
||||
} \
|
||||
#define RETURN_ON_ERR_T(T, x) \
|
||||
do { \
|
||||
std::error_code __ec = (x); \
|
||||
if (__ec) { \
|
||||
DLOG(ERROR) << "Error while calling " #x ": " << __ec.message(); \
|
||||
return (T)(__ec); \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
#define RETURN_ON_ERR(x) RETURN_ON_ERR_T(std::error_code, x)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue