Skip to content

Commit

Permalink
Allow MetricAccountingBlockReader to accept any BlockReader
Browse files Browse the repository at this point in the history
generalize the constructor input of MetricAccountingBlockReader to count metrics for any implementation of BlockReader
			pr-link: #18590
			change-id: cid-75519680da58b580045de2496263c26160c07857
  • Loading branch information
Xenorith authored Apr 25, 2024
1 parent ac3d7cd commit 254aa3d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@
* An reader class with metrics.
*/
public class MetricAccountingBlockReader extends BlockReader {
private final LocalFileBlockReader mBlockReader;
private final BlockReader mBlockReader;

/**
* A decorator of BlockReader.
* @param mblockReader block reader
*/
public MetricAccountingBlockReader(LocalFileBlockReader mblockReader) {
public MetricAccountingBlockReader(BlockReader mblockReader) {
mBlockReader = mblockReader;
}

Expand Down

0 comments on commit 254aa3d

Please sign in to comment.