mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-12-01 14:00:25 +08:00
优化代码
This commit is contained in:
@@ -32,7 +32,6 @@ type recordList struct {
|
|||||||
var sharedDomainRecordsCache = NewDomainRecordsCache()
|
var sharedDomainRecordsCache = NewDomainRecordsCache()
|
||||||
|
|
||||||
// DomainRecordsCache 域名记录缓存
|
// DomainRecordsCache 域名记录缓存
|
||||||
// TODO 自动清理没有使用的域名记录,以节约内存
|
|
||||||
type DomainRecordsCache struct {
|
type DomainRecordsCache struct {
|
||||||
domainRecordsMap map[string]*recordList // domain@providerId => record
|
domainRecordsMap map[string]*recordList // domain@providerId => record
|
||||||
locker sync.Mutex
|
locker sync.Mutex
|
||||||
|
|||||||
Reference in New Issue
Block a user