Skip to content

Commit

Permalink
fix build error on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
gukj-spel committed Aug 15, 2024
1 parent 4462256 commit 0ee023f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

namespace pikiwidb {

const ClientInfo ClientInfo::invalidClientInfo = {-1, "", -1};
const ClientInfo ClientInfo::invalidClientInfo = {0, "", -1};

void CmdRes::RedisAppendLen(std::string& str, int64_t ori, const std::string& prefix) {
str.append(prefix);
Expand Down
2 changes: 1 addition & 1 deletion src/client.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ class DB;
struct PSlaveInfo;

struct ClientInfo {
int64_t client_id;
uint64_t client_id;
std::string ip;
int port;
static const ClientInfo invalidClientInfo;
Expand Down

0 comments on commit 0ee023f

Please sign in to comment.