Skip to content

Commit 5b2500f

Browse files
authored
Simplify PING call, expect default response (#23)
* Simplify PING call, expect default response * Restore msg as const
1 parent 9ea3f3d commit 5b2500f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/redis_cache.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ init_client(
4141
{
4242
std::unique_ptr<sw::redis::Redis> redis =
4343
std::make_unique<sw::redis::Redis>(connectionOptions, poolOptions);
44-
const auto msg = "Triton RedisCache client connected";
45-
if (redis->ping(msg) != msg) {
44+
const auto msg = "PONG";
45+
if (redis->ping() != msg) {
4646
throw std::runtime_error("Failed to ping Redis server.");
4747
}
4848

0 commit comments

Comments
 (0)