This commit is contained in:
Konstantin Lebedev
2020-11-12 04:10:06 +05:00
parent fc7baef5bb
commit 1eec5c8d5d
10 changed files with 362 additions and 353 deletions

View File

@@ -98,6 +98,7 @@ func (vc *vidMap) GetVidLocations(vid string) (locations []Location, err error)
func (vc *vidMap) GetLocations(vid uint32) (locations []Location, found bool) {
vc.RLock()
defer vc.RUnlock()
locations, found = vc.vid2Locations[vid]
return
}