馃殮 Put CacheMap in its own module

parent 7c7e2fd2
const net = require("net");
const EventEmitter = require("events").EventEmitter;
const CacheMap = require("./CacheMap");
const BanchoUser = require("./BanchoUser");
const BanchoChannel = require("./BanchoChannel");
const BanchoRateLimiter = require("./BanchoRateLimiter");
......@@ -9,13 +9,6 @@ const ConnectStates = require("./Enums/ConnectStates");
const IrcCommands = require("./Enums/IrcCommands");
const Nodesu = require("nodesu");
let CacheMap;
try {
CacheMap = require("weak-value-map");
} catch(err) {
CacheMap = Map;
}
const ignoredSplits = [
"312", // Whois server info (useless on Bancho)
"333", // Time when topic was set
......
let CacheMap;
try {
CacheMap = require("weak-value-map");
} catch(err) {
CacheMap = Map;
}
module.exports = CacheMap;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment