<reponame>majster-pl/open-link-logger-app<filename>node_modules/connect-pause/index.js<gh_stars>0/**
 * connect-pause
 * Copyright(c) 2013 Ariel Flesler <anpch@example.com>
 * MIT Licensed
 */

module.exports = function(delay, err) {
  delay = delay || 1000;

  return function(req, res, next){
    setTimeout(next, delay, err);
  };
};
