aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/constants.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-03-08 11:34:15 +0100
committerChocobozzz <me@florianbigard.com>2022-03-08 11:39:56 +0100
commitcc45cc9ac1d0afbe4844c34b13dd4a65dd523be1 (patch)
tree11417242ae9f6d359fb68a92214fc8565b3b44d2 /server/initializers/constants.ts
parent7b51ede977c299a74728171d8c124bcc4cbba6ea (diff)
downloadPeerTube-cc45cc9ac1d0afbe4844c34b13dd4a65dd523be1.tar.gz
PeerTube-cc45cc9ac1d0afbe4844c34b13dd4a65dd523be1.tar.zst
PeerTube-cc45cc9ac1d0afbe4844c34b13dd4a65dd523be1.zip
Remove uneeded memoize
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r--server/initializers/constants.ts4
1 files changed, 1 insertions, 3 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts
index 3069e2353..7bc2877aa 100644
--- a/server/initializers/constants.ts
+++ b/server/initializers/constants.ts
@@ -718,12 +718,10 @@ const MEMOIZE_TTL = {
718 OVERVIEWS_SAMPLE: 1000 * 3600 * 4, // 4 hours 718 OVERVIEWS_SAMPLE: 1000 * 3600 * 4, // 4 hours
719 INFO_HASH_EXISTS: 1000 * 3600 * 12, // 12 hours 719 INFO_HASH_EXISTS: 1000 * 3600 * 12, // 12 hours
720 LIVE_ABLE_TO_UPLOAD: 1000 * 60, // 1 minute 720 LIVE_ABLE_TO_UPLOAD: 1000 * 60, // 1 minute
721 LIVE_CHECK_SOCKET_HEALTH: 1000 * 60, // 1 minute 721 LIVE_CHECK_SOCKET_HEALTH: 1000 * 60 // 1 minute
722 MD_TO_PLAIN_TEXT_CLIENT_HTML: 1000 * 60 // 1 minute
723} 722}
724 723
725const MEMOIZE_LENGTH = { 724const MEMOIZE_LENGTH = {
726 MD_TO_PLAIN_TEXT_CLIENT_HTML: 100,
727 INFO_HASH_EXISTS: 200 725 INFO_HASH_EXISTS: 200
728} 726}
729 727