1
0
mirror of https://github.com/charlienet/go-mixed.git synced 2025-07-17 16:12:42 +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 ( import (
"context" "context"
"sync"
"github.com/bits-and-blooms/bitset" "github.com/bits-and-blooms/bitset"
"github.com/charlienet/go-mixed/locker"
) )
type memStore struct { type memStore struct {
size uint size uint
set *bitset.BitSet // 内存位图 set *bitset.BitSet // 内存位图
lock locker.RWLocker // 同步锁 lock sync.RWMutex // 同步锁
} }
func newMemStore(size uint) *memStore { func newMemStore(size uint) *memStore {