This commit is contained in:
Artem Vorotnikov 2021-03-21 08:20:44 +03:00 committed by GitHub
parent ce868009d6
commit 72ff17e0b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}
} }