Skip to content

Commit 9b01a11

Browse files
committed
fix redis on Windows
1 parent c166457 commit 9b01a11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nosql_lib/redis/src/RedisConnection.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ void RedisConnection::startConnectionInLoop()
7070
redisContext_->ev.cleanup = cleanup;
7171
redisContext_->ev.data = this;
7272

73-
channel_ = std::make_unique<trantor::Channel>(loop_, redisContext_->c.fd);
73+
channel_ = std::make_unique<trantor::Channel>(loop_, (int)redisContext_->c.fd);
7474
channel_->setReadCallback([this]() { handleRedisRead(); });
7575
channel_->setWriteCallback([this]() { handleRedisWrite(); });
7676
redisAsyncSetConnectCallback(

0 commit comments

Comments
 (0)