1
0
mirror of https://github.com/charlienet/go-mixed.git synced 2025-07-17 08:02:40 +08:00

use base locker

This commit is contained in:
2024-05-28 04:14:08 +08:00
parent 85c5a611e1
commit 822932fe15

View File

@ -2,15 +2,15 @@ package bloom
import (
"context"
"sync"
"github.com/bits-and-blooms/bitset"
"github.com/charlienet/go-mixed/locker"
)
type memStore struct {
size uint
set *bitset.BitSet // 内存位图
lock locker.RWLocker // 同步锁
set *bitset.BitSet // 内存位图
lock sync.RWMutex // 同步锁
}
func newMemStore(size uint) *memStore {