Skip to content

Commit 44f68a2

Browse files
committed
eckstyle] [ERROR] RESOLVED
1 parent 5ef2bfc commit 44f68a2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

core/src/main/java/kafka/automq/failover/FailoverListener.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,13 @@ private Optional<FailoverContext[]> getContexts(MetadataDelta delta) {
8181
.map(this::decodeContexts);
8282
}
8383

84-
private FailoverContext[] decodeContexts(ByteBuffer byteBuffer) {
84+
private FailoverContext[] decodeContexts(ByteBuffer byteBuffer) {
8585
ByteBuffer slice = byteBuffer.slice();
8686
byte[] data = new byte[slice.remaining()];
8787
slice.get(data);
8888
return JsonUtils.decode(new String(data, StandardCharsets.UTF_8), FailoverContext[].class);
8989
}
9090

91-
9291
private void onContextsChange(FailoverContext[] contexts) {
9392
Set<FailedNode> oldFailedNodes = recovering.keySet();
9493
Set<FailedNode> newFailedNodes = Arrays.stream(contexts)

0 commit comments

Comments
 (0)