mirror of
				https://github.com/TeaOSLab/EdgeNode.git
				synced 2025-11-04 16:00:25 +08:00 
			
		
		
		
	优化热门缓存算法
This commit is contained in:
		@@ -1170,6 +1170,9 @@ func (this *FileStorage) hotLoop() {
 | 
			
		||||
 | 
			
		||||
	var result = []*HotItem{} // [ {key: ..., hits: ...}, ... ]
 | 
			
		||||
	for _, v := range this.hotMap {
 | 
			
		||||
		if v.Hits <= 1 {
 | 
			
		||||
			continue
 | 
			
		||||
		}
 | 
			
		||||
		result = append(result, v)
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user