refactor: Uid/Uin转换V2版本
This commit is contained in:
1 parent
491ec04b46
commit
8817dc6b10
10 files changed
+90
-29
No files matched your search
@@ -2,7 +2,7 @@ import { Peer } from '@/core';
|
||||
import crypto, { randomInt, randomUUID } from 'crypto';
|
||||
import { logError } from './log';
|
||||
|
||||
class LimitedHashTable<K, V> {
|
||||
export class LimitedHashTable<K, V> {
|
||||
private keyToValue: Map<K, V> = new Map();
|
||||
private valueToKey: Map<V, K> = new Map();
|
||||
private maxSize: number;
|
||||
|
||||
Reference in new issue
Block a user