From be9f897f4270ac9454576acc3808b7225d74e3d7 Mon Sep 17 00:00:00 2001 From: Yury-Fridlyand Date: Mon, 6 May 2024 20:12:30 -0700 Subject: [PATCH] Apply suggestions from code review Signed-off-by: Yury-Fridlyand Co-authored-by: Andrew Carbonetto --- csharp/lib/AsyncClient.cs | 2 +- glide-core/src/protobuf/redis_request.proto | 4 ++-- glide-core/src/request_type.rs | 10 +++++----- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/csharp/lib/AsyncClient.cs b/csharp/lib/AsyncClient.cs index a6c3118502..d5aeb64566 100644 --- a/csharp/lib/AsyncClient.cs +++ b/csharp/lib/AsyncClient.cs @@ -187,7 +187,7 @@ private enum RequestType ExpireAt = 57, Exists = 58, Unlink = 59, - TTL = 60, + Ttl = 60, ZAdd = 61, ZRem = 62, ZRange = 63, diff --git a/glide-core/src/protobuf/redis_request.proto b/glide-core/src/protobuf/redis_request.proto index 1d8f84e353..cd24eb0d3b 100644 --- a/glide-core/src/protobuf/redis_request.proto +++ b/glide-core/src/protobuf/redis_request.proto @@ -99,7 +99,7 @@ enum RequestType { ExpireAt = 57; Exists = 58; Unlink = 59; - TTL = 60; + Ttl = 60; ZAdd = 61; ZRem = 62; ZRange = 63; @@ -164,7 +164,7 @@ enum RequestType { SDiff = 124; ObjectIdleTime = 125; ObjectRefCount = 126; - LOLWUT = 100500; + Lolwut = 100500; GeoDist = 127; GeoPos = 128; BZPopMax = 129; diff --git a/glide-core/src/request_type.rs b/glide-core/src/request_type.rs index c3c204f2ab..8b55043a42 100644 --- a/glide-core/src/request_type.rs +++ b/glide-core/src/request_type.rs @@ -69,7 +69,7 @@ pub enum RequestType { ExpireAt = 57, Exists = 58, Unlink = 59, - TTL = 60, + Ttl = 60, ZAdd = 61, ZRem = 62, ZRange = 63, @@ -134,7 +134,7 @@ pub enum RequestType { SDiff = 124, ObjectIdleTime = 125, ObjectRefCount = 126, - LOLWUT = 100500, + Lolwut = 100500, GeoDist = 127, GeoPos = 128, BZPopMax = 129, @@ -284,7 +284,7 @@ impl From<::protobuf::EnumOrUnknown> for RequestType { ProtobufRequestType::GeoDist => RequestType::GeoDist, ProtobufRequestType::SDiff => RequestType::SDiff, ProtobufRequestType::ObjectRefCount => RequestType::ObjectRefCount, - ProtobufRequestType::LOLWUT => RequestType::LOLWUT, + ProtobufRequestType::Lolwut => RequestType::Lolwut, ProtobufRequestType::GeoPos => RequestType::GeoPos, ProtobufRequestType::BZPopMax => RequestType::BZPopMax, ProtobufRequestType::RenameNx => RequestType::RenameNx, @@ -361,7 +361,7 @@ impl RequestType { RequestType::ExpireAt => Some(cmd("EXPIREAT")), RequestType::Exists => Some(cmd("EXISTS")), RequestType::Unlink => Some(cmd("UNLINK")), - RequestType::TTL => Some(cmd("TTL")), + RequestType::Ttl => Some(cmd("TTL")), RequestType::ZAdd => Some(cmd("ZADD")), RequestType::ZRem => Some(cmd("ZREM")), RequestType::ZRange => Some(cmd("ZRANGE")), @@ -428,7 +428,7 @@ impl RequestType { RequestType::GeoDist => Some(cmd("GEODIST")), RequestType::SDiff => Some(cmd("SDIFF")), RequestType::ObjectRefCount => Some(get_two_word_command("OBJECT", "REFCOUNT")), - RequestType::LOLWUT => Some(cmd("LOLWUT")), + RequestType::Lolwut => Some(cmd("LOLWUT")), RequestType::GeoPos => Some(cmd("GEOPOS")), RequestType::BZPopMax => Some(cmd("BZPOPMAX")), RequestType::RenameNx => Some(cmd("RENAMENX")),