Skip to content

Commit e21b148

Browse files
committed
Make sure IdFactory is passed to locking service if using cache
1 parent c3a8934 commit e21b148

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/me/desair/tus/server/upload/cache/ThreadLocalCachedStorageAndLockingService.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ public void update(UploadInfo uploadInfo) throws IOException, UploadNotFoundExce
7474
@Override
7575
public void setIdFactory(UploadIdFactory idFactory) {
7676
this.idFactory = idFactory;
77-
storageServiceDelegate.setIdFactory(idFactory);
77+
this.storageServiceDelegate.setIdFactory(idFactory);
78+
this.lockingServiceDelegate.setIdFactory(idFactory);
7879
}
7980

8081
@Override

0 commit comments

Comments
 (0)