MINOR: Skip `Struct` conversion in `FetchRequest.parse`
This was missed in
Reviewers: Ismael Juma
@@ -20,6 +20,7 @@ import org.apache.kafka.common.IsolationLevel;
import org.apache.kafka.common.TopicPartition;
import org.apache.kafka.common.message.FetchRequestData;
import org.apache.kafka.common.protocol.ApiKeys;
+import org.apache.kafka.common.protocol.ByteBufferAccessor;
import org.apache.kafka.common.protocol.Errors;
import org.apache.kafka.common.record.MemoryRecords;
import org.apache.kafka.common.record.RecordBatch;
@@ -371,7 +372,7 @@ public class FetchRequest extends AbstractRequest {
}
public static FetchRequest parse(ByteBuffer buffer, short version) {
- return new FetchRequest(new FetchRequestData(ApiKeys.FETCH.parseRequest(version, buffer), version), version);
+ return new FetchRequest(new FetchRequestData(new ByteBufferAccessor(buffer), version), version);
}
@Override
