Skip to content

Commit

Permalink
fix: fix the returning type for the create method of CosNMappoedBuffe…
Browse files Browse the repository at this point in the history
…rFactory

Signed-off-by: Yang Yu <[email protected]>
  • Loading branch information
yuyang733 committed Jan 23, 2024
1 parent 21b0a06 commit e141e95
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ private static File createDir(String tmpDir) throws IOException {
}

@Override
public CosNMappedBuffer create(int size) {
public CosNByteBuffer create(int size) {
return this.create(Constants.BLOCK_TMP_FILE_PREFIX,
Constants.BLOCK_TMP_FILE_SUFFIX, size);
}
Expand All @@ -71,7 +71,7 @@ private File getTmpDir() {
return tmpDirs.get(Math.abs(currentIndex.getAndIncrement() % tmpDirs.size()));
}

public CosNMappedBuffer create(String prefix, String suffix, int size) {
public CosNByteBuffer create(String prefix, String suffix, int size) {
File tmpDir = getTmpDir();
if (null == tmpDir) {
LOG.error("The tmp dir is null. no mapped buffer will be created.");
Expand Down

0 comments on commit e141e95

Please sign in to comment.