Skip to content

Commit

Permalink
Move helper scope
Browse files Browse the repository at this point in the history
* This file really needs to be redone from scratch.

Post OpenUserJS#2062

*master* foo'd on my end
  • Loading branch information
Martii authored Mar 4, 2025
1 parent c3d6b90 commit 0413678
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ var crypto = require('crypto');
var events = require('events');
events.EventEmitter.defaultMaxListeners = 15;

var ensureIntegerOrNull = require('./libs/helpers').ensureIntegerOrNull;

var express = require('express');
var toobusy = require('toobusy-js');
var statusCodePage = require('./libs/templateHelpers').statusCodePage;
Expand Down Expand Up @@ -195,7 +197,6 @@ var sessionStore = MongoStore.create({
});

// See https://hacks.mozilla.org/2013/01/building-a-node-js-server-that-wont-melt-a-node-js-holiday-season-part-5/
var ensureIntegerOrNull = require('./libs/helpers').ensureIntegerOrNull;
var isSameOrigin = require('./libs/helpers').isSameOrigin;

var maxLag = ensureIntegerOrNull(process.env.BUSY_MAXLAG) || 70;
Expand Down

0 comments on commit 0413678

Please sign in to comment.