Skip to content

Commit

Permalink
Adding unique chars tests for setrange and getrange commands
Browse files Browse the repository at this point in the history
Signed-off-by: Maayan Shani <[email protected]>
  • Loading branch information
Maayan Shani committed Sep 9, 2024
1 parent b995cbe commit 41a6c24
Show file tree
Hide file tree
Showing 2 changed files with 148 additions and 155 deletions.
30 changes: 15 additions & 15 deletions node/src/BaseClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ function toProtobufRoute(
if (split.length !== 2) {
throw new RequestError(
"No port provided, expected host to be formatted as `{hostname}:{port}`. Received " +
host,
host,
);
}

Expand Down Expand Up @@ -888,17 +888,17 @@ export class BaseClient {
) {
const message = Array.isArray(command)
? command_request.CommandRequest.create({
callbackIdx,
transaction: command_request.Transaction.create({
commands: command,
}),
})
callbackIdx,
transaction: command_request.Transaction.create({
commands: command,
}),
})
: command instanceof command_request.Command
? command_request.CommandRequest.create({
? command_request.CommandRequest.create({
callbackIdx,
singleCommand: command,
})
: command_request.CommandRequest.create({
: command_request.CommandRequest.create({
callbackIdx,
scriptInvocation: command,
});
Expand Down Expand Up @@ -5670,9 +5670,9 @@ export class BaseClient {
ReadFrom,
connection_request.ReadFrom
> = {
primary: connection_request.ReadFrom.Primary,
preferReplica: connection_request.ReadFrom.PreferReplica,
};
primary: connection_request.ReadFrom.Primary,
preferReplica: connection_request.ReadFrom.PreferReplica,
};

/**
* Returns the number of messages that were successfully acknowledged by the consumer group member of a stream.
Expand Down Expand Up @@ -7070,11 +7070,11 @@ export class BaseClient {
: connection_request.ReadFrom.Primary;
const authenticationInfo =
options.credentials !== undefined &&
"password" in options.credentials
"password" in options.credentials
? {
password: options.credentials.password,
username: options.credentials.username,
}
password: options.credentials.password,
username: options.credentials.username,
}
: undefined;
const protocol = options.protocol as
| connection_request.ProtocolVersion
Expand Down
Loading

0 comments on commit 41a6c24

Please sign in to comment.