Skip to content

Commit

Permalink
#5: Have default maxium file size value in a public constant.
Browse files Browse the repository at this point in the history
  • Loading branch information
guusdk committed Feb 19, 2018
1 parent 0909eb5 commit 8f4027d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/nl/goodbytes/xmpp/xep0363/SlotManager.java
Expand Up @@ -33,9 +33,10 @@
// TODO: persist internal state to allow for restart survival.
public class SlotManager
{
public static final long DEFAULT_MAX_FILE_SIZE = 5 * 1024 * 1024;
private static SlotManager INSTANCE = null;
private final Cache<UUID, Slot> slots;
private long maxFileSize = 5 * 1024 * 1024;
private long maxFileSize = DEFAULT_MAX_FILE_SIZE;
private long putExpiryValue = 5;
private TimeUnit putExpiryUnit = TimeUnit.MINUTES;

Expand Down

0 comments on commit 8f4027d

Please sign in to comment.