Skip to content

Commit

Permalink
Missing renames.
Browse files Browse the repository at this point in the history
Signed-off-by: Yury-Fridlyand <[email protected]>
  • Loading branch information
Yury-Fridlyand committed May 3, 2024
1 parent f51fa2a commit 9fb4736
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions csharp/lib/AsyncClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public AsyncClient(string host, uint port, bool useTLS)
IntPtr[] args = _arrayPool.Rent(2);
args[0] = Marshal.StringToHGlobalAnsi(key);
args[1] = Marshal.StringToHGlobalAnsi(value);
string? result = await Command(args, 2, RequestType.SetString);
string? result = await Command(args, 2, RequestType.Set);
_arrayPool.Return(args);
return result;
}
Expand All @@ -47,7 +47,7 @@ public AsyncClient(string host, uint port, bool useTLS)
{
IntPtr[] args = _arrayPool.Rent(1);
args[0] = Marshal.StringToHGlobalAnsi(key);
string? result = await Command(args, 1, RequestType.GetString);
string? result = await Command(args, 1, RequestType.Get);
_arrayPool.Return(args);
return result;
}
Expand Down Expand Up @@ -129,8 +129,8 @@ private enum RequestType
{
InvalidRequest = 0,
CustomCommand = 1,
GetString = 2,
SetString = 3,
Get = 2,
Set = 3,
Ping = 4,
Info = 5,
Del = 6,
Expand Down
4 changes: 2 additions & 2 deletions python/python/tests/test_proto_coded.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class TestProtobufCodec:
def test_encode_decode_delimited(self):
request = RedisRequest()
request.callback_idx = 1
request.single_command.request_type = RequestType.SetString
request.single_command.request_type = RequestType.Set
args = [
"foo",
"bar",
Expand All @@ -28,7 +28,7 @@ def test_encode_decode_delimited(self):
)
assert new_offset == len(b_arr)
assert parsed_request.callback_idx == 1
assert parsed_request.single_command.request_type == RequestType.SetString
assert parsed_request.single_command.request_type == RequestType.Set
assert parsed_request.single_command.args_array.args == args

def test_decode_partial_message_fails(self):
Expand Down

0 comments on commit 9fb4736

Please sign in to comment.