mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-15 09:10:24 +08:00
修复查看服务24小时流量统计会产生panic的问题
This commit is contained in:
@@ -834,11 +834,6 @@ func (this *ServerBandwidthStatDAO) HasFullData(tx *dbs.Tx, serverId int64, mont
|
||||
return false, errors.New("invalid month '" + month + "'")
|
||||
}
|
||||
|
||||
// 仅供调试
|
||||
if Tea.IsTesting() {
|
||||
return true, nil
|
||||
}
|
||||
|
||||
fullDataLocker.Lock()
|
||||
hasData, ok := fullDataMap[monthKey]
|
||||
fullDataLocker.Unlock()
|
||||
|
||||
Reference in New Issue
Block a user