mirror of
https://github.com/HDT3213/godis.git
synced 2025-10-05 16:57:06 +08:00
Modify the implementation of database RWLocks and RWUnLocks
This commit is contained in:
@@ -2,7 +2,6 @@ package database
|
||||
|
||||
import (
|
||||
"github.com/hdt3213/godis/datastruct/dict"
|
||||
"github.com/hdt3213/godis/datastruct/lock"
|
||||
)
|
||||
|
||||
func makeTestDB() *DB {
|
||||
@@ -10,7 +9,6 @@ func makeTestDB() *DB {
|
||||
data: dict.MakeConcurrent(dataDictSize),
|
||||
versionMap: dict.MakeConcurrent(dataDictSize),
|
||||
ttlMap: dict.MakeConcurrent(ttlDictSize),
|
||||
locker: lock.Make(lockerSize),
|
||||
addAof: func(line CmdLine) {},
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user