...
|
...
|
@@ -15,9 +15,13 @@ const index = co(function* (channel) { |
|
|
});
|
|
|
|
|
|
const removeBlack = (remoteIp) => {
|
|
|
let key = `pc:limiter:${remoteIp}`;
|
|
|
let key = `pc:limiter:${remoteIp}`,
|
|
|
key10m = `pc:limiter:10m:${remoteIp}`;
|
|
|
|
|
|
return cache.delAsync(key);
|
|
|
return Promise.all([
|
|
|
cache.delAsync(key),
|
|
|
cache.delAsync(key10m)
|
|
|
]);
|
|
|
};
|
|
|
|
|
|
module.exports = {
|
...
|
...
|
|