Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Signed-off-by: Yury-Fridlyand <[email protected]>

Co-authored-by: Andrew Carbonetto <[email protected]>
  • Loading branch information
Yury-Fridlyand and acarbonetto authored May 7, 2024
1 parent 9fb4736 commit be9f897
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion csharp/lib/AsyncClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ private enum RequestType
ExpireAt = 57,
Exists = 58,
Unlink = 59,
TTL = 60,
Ttl = 60,
ZAdd = 61,
ZRem = 62,
ZRange = 63,
Expand Down
4 changes: 2 additions & 2 deletions glide-core/src/protobuf/redis_request.proto
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ enum RequestType {
ExpireAt = 57;
Exists = 58;
Unlink = 59;
TTL = 60;
Ttl = 60;
ZAdd = 61;
ZRem = 62;
ZRange = 63;
Expand Down Expand Up @@ -164,7 +164,7 @@ enum RequestType {
SDiff = 124;
ObjectIdleTime = 125;
ObjectRefCount = 126;
LOLWUT = 100500;
Lolwut = 100500;
GeoDist = 127;
GeoPos = 128;
BZPopMax = 129;
Expand Down
10 changes: 5 additions & 5 deletions glide-core/src/request_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ pub enum RequestType {
ExpireAt = 57,
Exists = 58,
Unlink = 59,
TTL = 60,
Ttl = 60,
ZAdd = 61,
ZRem = 62,
ZRange = 63,
Expand Down Expand Up @@ -134,7 +134,7 @@ pub enum RequestType {
SDiff = 124,
ObjectIdleTime = 125,
ObjectRefCount = 126,
LOLWUT = 100500,
Lolwut = 100500,
GeoDist = 127,
GeoPos = 128,
BZPopMax = 129,
Expand Down Expand Up @@ -284,7 +284,7 @@ impl From<::protobuf::EnumOrUnknown<ProtobufRequestType>> 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,
Expand Down Expand Up @@ -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")),
Expand Down Expand Up @@ -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")),
Expand Down

0 comments on commit be9f897

Please sign in to comment.