Skip to content

Commit

Permalink
Some fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Sachin Kale <[email protected]>
  • Loading branch information
Sachin Kale committed Oct 29, 2023
1 parent 9a2e87e commit 8aaf97f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ public String fetchLock(String filenamePrefix, String acquirerId) throws IOExcep
Collection<String> lockFiles = lockDirectory.listFilesByPrefix(filenamePrefix);
List<String> lockFilesForAcquirer = lockFiles.stream()
.filter(lockFile -> acquirerId.equals(FileLockInfo.LockFileUtils.getAcquirerIdFromLock(lockFile)))
.map(FileLockInfo.LockFileUtils::getFileToLockNameFromLock)
.collect(Collectors.toList());
return lockFilesForAcquirer.get(0);
}
Expand Down

0 comments on commit 8aaf97f

Please sign in to comment.