mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 23:26:44 +00:00
ethdb: remove Set
Set deadlocks immediately and isn't part of the Database interface.
This commit is contained in:
parent
80f7c6c299
commit
1a008e5511
1 changed files with 0 additions and 7 deletions
|
|
@ -45,13 +45,6 @@ func (db *MemDatabase) Put(key []byte, value []byte) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
func (db *MemDatabase) Set(key []byte, value []byte) {
|
||||
db.lock.Lock()
|
||||
defer db.lock.Unlock()
|
||||
|
||||
db.Put(key, value)
|
||||
}
|
||||
|
||||
func (db *MemDatabase) Get(key []byte) ([]byte, error) {
|
||||
db.lock.RLock()
|
||||
defer db.lock.RUnlock()
|
||||
|
|
|
|||
Loading…
Reference in a new issue