Skip to content

Commit 93f9a43

Browse files
author
Himshikha Gupta
committed
refactor
Signed-off-by: Himshikha Gupta <himshikh@amazon.com>
1 parent 022d98f commit 93f9a43

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/main/java/org/opensearch/gateway/remote/ClusterStateChecksum.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,12 +161,12 @@ private void executeChecksumTask(
161161
});
162162
}
163163

164-
private long createChecksum(CheckedFunction<BufferedChecksumStreamOutput, Void, IOException> o) throws IOException {
164+
private long createChecksum(CheckedFunction<BufferedChecksumStreamOutput, Void, IOException> task) throws IOException {
165165
try (
166166
BytesStreamOutput out = new BytesStreamOutput();
167167
BufferedChecksumStreamOutput checksumOut = new BufferedChecksumStreamOutput(out)
168168
) {
169-
o.apply(checksumOut);
169+
task.apply(checksumOut);
170170
return checksumOut.getChecksum();
171171
}
172172
}

0 commit comments

Comments
 (0)