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

1 Commits

Author SHA1 Message Date
822932fe15 use base locker 2024-05-28 04:14:08 +08:00

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 {