소스 검색

fix: lock error

master
Blaz Smehov 10 시간 전
부모
커밋
d0157ce6ae
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. +5
    -1
      internal/pkg/common/appcontext/context.go

+ 5
- 1
internal/pkg/common/appcontext/context.go 파일 보기

@@ -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


불러오는 중...
취소
저장