statistics lock

This commit is contained in:
mengskysama 2016-12-06 14:57:15 +08:00 committed by GitHub
parent 90999717dd
commit c0c113036b
1 changed files with 3 additions and 1 deletions

View File

@ -117,6 +117,8 @@ func (m *URLMap) GetMap() map[string]interface{} {
// GetMapData return all mapdata
func (m *URLMap) GetMapData() []map[string]interface{} {
m.lock.Lock()
defer m.lock.Unlock()
var resultLists []map[string]interface{}