// Time to wait between requests to the friends (10 min)
let INTERVAL = 600000
+const OAUTH_LIFETIME = {
+ ACCESS_TOKEN: 3600 * 4, // 4 hours
+ REFRESH_TOKEN: 1209600 // 2 weeks
+}
+
// Number of results by default for the pagination
const PAGINATION_COUNT_DEFAULT = 15
// Number of requests in parallel we can make
const REQUESTS_IN_PARALLEL = 10
+// How many requests we put in request (request scheduler)
+const REQUESTS_LIMIT = 10
+
// Number of requests to retry for replay requests module
const RETRY_REQUESTS = 5
API_VERSION: API_VERSION,
FRIEND_SCORE: FRIEND_SCORE,
INTERVAL: INTERVAL,
+ OAUTH_LIFETIME: OAUTH_LIFETIME,
PAGINATION_COUNT_DEFAULT: PAGINATION_COUNT_DEFAULT,
PODS_SCORE: PODS_SCORE,
REQUESTS_IN_PARALLEL: REQUESTS_IN_PARALLEL,
+ REQUESTS_LIMIT: REQUESTS_LIMIT,
RETRY_REQUESTS: RETRY_REQUESTS,
SEARCHABLE_COLUMNS: SEARCHABLE_COLUMNS,
SORTABLE_COLUMNS: SORTABLE_COLUMNS,