one unlock pls
This commit is contained in:
parent
1479e926ef
commit
796905a6e9
6
utils.go
6
utils.go
@ -23,11 +23,11 @@ var mutex = &sync.RWMutex{}
|
|||||||
|
|
||||||
func ToDBName(name string) string {
|
func ToDBName(name string) string {
|
||||||
mutex.RLock()
|
mutex.RLock()
|
||||||
if v, ok := smap[name]; ok {
|
v, ok := smap[name]
|
||||||
mutex.RUnlock()
|
mutex.RUnlock()
|
||||||
|
if ok {
|
||||||
return v
|
return v
|
||||||
}
|
}
|
||||||
mutex.RUnlock()
|
|
||||||
|
|
||||||
value := commonInitialismsReplacer.Replace(name)
|
value := commonInitialismsReplacer.Replace(name)
|
||||||
buf := bytes.NewBufferString("")
|
buf := bytes.NewBufferString("")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user