LocalLargeFileRepository: Rename DEFAULT_TIMEOUT to DEFAULT_EXPIRATION_SECONDS
Change-Id: I25d80533e2a93d8f5b61382e665b6e6540a4814e
diff --git a/src/main/java/com/googlesource/gerrit/plugins/lfs/fs/LocalLargeFileRepository.java b/src/main/java/com/googlesource/gerrit/plugins/lfs/fs/LocalLargeFileRepository.java
index 812af2f..0a6ef34 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/lfs/fs/LocalLargeFileRepository.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/lfs/fs/LocalLargeFileRepository.java
@@ -42,7 +42,7 @@
}
private static final String CONTENT_PATH_TEMPLATE = "content/%s/";
- private static final int DEFAULT_TIMEOUT = 10; // in seconds
+ private static final int DEFAULT_EXPIRATION_SECONDS = 10;
private final String servletUrlPattern;
private final LfsFsRequestAuthorizer authorizer;
@@ -65,7 +65,11 @@
(long)
configFactory
.getGlobalConfig()
- .getInt(backend.type.name(), backend.name, "expirationSeconds", DEFAULT_TIMEOUT);
+ .getInt(
+ backend.type.name(),
+ backend.name,
+ "expirationSeconds",
+ DEFAULT_EXPIRATION_SECONDS);
}
public String getServletUrlPattern() {