mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
core: remove unused imports
This commit is contained in:
1 parent
25481ee72b
commit
60ef2a1ad5
1 file changed
-2
@@ -7,7 +7,6 @@ import {
|
|||||||
Udict, Udoc, VUdoc,
|
Udict, Udoc, VUdoc,
|
||||||
} from '../interface';
|
} from '../interface';
|
||||||
import pwhash from '../lib/hash.hydro';
|
import pwhash from '../lib/hash.hydro';
|
||||||
import { Logger } from '../logger';
|
|
||||||
import * as bus from '../service/bus';
|
import * as bus from '../service/bus';
|
||||||
import db from '../service/db';
|
import db from '../service/db';
|
||||||
import { Value } from '../typeutils';
|
import { Value } from '../typeutils';
|
||||||
@@ -22,7 +21,6 @@ export const coll: Collection<Udoc> = db.collection('user');
|
|||||||
// Virtual user, only for display in contest.
|
// Virtual user, only for display in contest.
|
||||||
export const collV: Collection<VUdoc> = db.collection('vuser');
|
export const collV: Collection<VUdoc> = db.collection('vuser');
|
||||||
export const collGroup: Collection<GDoc> = db.collection('user.group');
|
export const collGroup: Collection<GDoc> = db.collection('user.group');
|
||||||
const logger = new Logger('model/user');
|
|
||||||
const cache = new LRU<string, User>({ max: 500, ttl: 300 * 1000 });
|
const cache = new LRU<string, User>({ max: 500, ttl: 300 * 1000 });
|
||||||
|
|
||||||
export function deleteUserCache(udoc: User | Udoc | string | undefined | null, receiver = false) {
|
export function deleteUserCache(udoc: User | Udoc | string | undefined | null, receiver = false) {
|
||||||
|
|||||||
Reference in new issue
Block a user