Skip to content

Commit

Permalink
Fix merge conflicts
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Carbonetto <[email protected]>
  • Loading branch information
acarbonetto committed Jun 26, 2024
1 parent 99b29d1 commit 3a316a2
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion glide-core/src/protobuf/redis_request.proto
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ enum RequestType {
SortReadOnly = 195;
FunctionDump = 196;
FunctionRestore = 197;
XPending = 196;
XPending = 198;
}

message Command {
Expand Down
2 changes: 1 addition & 1 deletion glide-core/src/request_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ pub enum RequestType {
SortReadOnly = 195,
FunctionDump = 196,
FunctionRestore = 197,
XPending = 196,
XPending = 198,
}

fn get_two_word_command(first: &str, second: &str) -> Cmd {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ CompletableFuture<Map<String, Map<String, String[][]>>> xreadgroup(
* }</pre>
*/
CompletableFuture<Object[][]> xpending(
String key, String group, StreamRange start, StreamRange end, long count);
String key, String group, StreamRange start, StreamRange end, long count);

/**
* Returns an extended form of stream message information for pending messages matching a given range of IDs.
Expand Down Expand Up @@ -678,10 +678,10 @@ CompletableFuture<Object[][]> xpending(
* }</pre>
*/
CompletableFuture<Object[][]> xpending(
String key,
String group,
StreamRange start,
StreamRange end,
long count,
StreamPendingOptions options);
String key,
String group,
StreamRange start,
StreamRange end,
long count,
StreamPendingOptions options);
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** Copyright GLIDE-for-Redis Project Contributors - SPDX Identifier: Apache-2.0 */
/** Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0 */
package glide.api.models.commands.stream;

import glide.api.commands.StreamBaseCommands;
Expand Down
20 changes: 10 additions & 10 deletions java/client/src/test/java/glide/api/RedisClientTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -5662,7 +5662,7 @@ public void xpending_returns_success() {

// match on protobuf request
when(commandManager.<Object[]>submitNewCommand(eq(XPending), eq(arguments), any()))
.thenReturn(testResponse);
.thenReturn(testResponse);

// exercise
CompletableFuture<Object[]> response = service.xpending(key, groupName);
Expand Down Expand Up @@ -5690,7 +5690,7 @@ public void xpending_with_start_end_count_returns_success() {

// match on protobuf request
when(commandManager.<Object[][]>submitNewCommand(eq(XPending), eq(arguments), any()))
.thenReturn(testResponse);
.thenReturn(testResponse);

// exercise
CompletableFuture<Object[][]> response = service.xpending(key, groupName, start, end, count);
Expand Down Expand Up @@ -5728,17 +5728,17 @@ public void xpending_with_start_end_count_options_returns_success() {

// match on protobuf request
when(commandManager.<Object[][]>submitNewCommand(eq(XPending), eq(arguments), any()))
.thenReturn(testResponse);
.thenReturn(testResponse);

// exercise
CompletableFuture<Object[][]> response =
service.xpending(
key,
groupName,
start,
end,
count,
StreamPendingOptions.builder().minIdleTime(100L).consumer(consumer).build());
service.xpending(
key,
groupName,
start,
end,
count,
StreamPendingOptions.builder().minIdleTime(100L).consumer(consumer).build());
Object[][] payload = response.get();

// verify
Expand Down

0 comments on commit 3a316a2

Please sign in to comment.