Skip to content

Commit 36f4bda

Browse files
committed
remove lock
1 parent 0a26d2e commit 36f4bda

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

services/ohlcv.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1300,8 +1300,6 @@ func (s *OHLCVService) GetLastPriceCurrentByTime(symbol string, createAt time.Ti
13001300
}
13011301

13021302
func (s *OHLCVService) getCachePairByName(pairName string) (*types.Pair, error) {
1303-
s.mutex.RLock()
1304-
defer s.mutex.RUnlock()
13051303
now := time.Now().Unix()
13061304
if pairCache, ok := s.pairCacheByName[pairName]; ok {
13071305
if now-pairCache.timelife < cacheTimeLifeMax {

0 commit comments

Comments
 (0)