|
|
|
@@ -188,7 +188,11 @@ func (m *AppState) CleanLookup() { |
|
|
|
func (m *AppState) GetBeaconLookup() map[string]string { |
|
|
|
m.beaconsLookup.Lock.RLock() |
|
|
|
defer m.beaconsLookup.Lock.RUnlock() |
|
|
|
return m.beaconsLookup.Lookup |
|
|
|
cp := make(map[string]string, len(m.beaconsLookup.Lookup)) |
|
|
|
for k, v := range m.beaconsLookup.Lookup { |
|
|
|
cp[k] = v |
|
|
|
} |
|
|
|
return cp |
|
|
|
} |
|
|
|
|
|
|
|
// BeaconExists checks if a beacon exists in the lookup |
|
|
|
|