mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-03 09:37:38 +00:00
Hide TxDb (#1575)
This commit is contained in:
parent
ce868009d6
commit
72ff17e0b7
@ -32,7 +32,7 @@ func (m *TxDb) Close() {
|
|||||||
// NewTxDbWithoutTransaction creates TxDb object without opening transaction,
|
// NewTxDbWithoutTransaction creates TxDb object without opening transaction,
|
||||||
// such TxDb not usable before .Begin() call on it
|
// such TxDb not usable before .Begin() call on it
|
||||||
// It allows inject TxDb object into class hierarchy, but open write transaction later
|
// It allows inject TxDb object into class hierarchy, but open write transaction later
|
||||||
func NewTxDbWithoutTransaction(db Database, flags TxFlags) *TxDb {
|
func NewTxDbWithoutTransaction(db Database, flags TxFlags) DbWithPendingMutations {
|
||||||
return &TxDb{db: db, txFlags: flags}
|
return &TxDb{db: db, txFlags: flags}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user