Skip to content

Commit

Permalink
bug fix: type mismatch when calling redisAsyncCommand
Browse files Browse the repository at this point in the history
  • Loading branch information
sewenew committed May 28, 2021
1 parent 03ff64d commit 6bba7dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sw/redis++/async_connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ bool AsyncConnection::_need_select_db() const {
void AsyncConnection::_select_db() {
assert(!broken());

if (redisAsyncCommand(_ctx, prepare_callback, nullptr, "SELECT %lld",
if (redisAsyncCommand(_ctx, prepare_callback, nullptr, "SELECT %d",
_opts.db) != REDIS_OK) {
throw Error("failed to send select command");
}
Expand Down

0 comments on commit 6bba7dc

Please sign in to comment.