rename Update to Transact

This commit is contained in:
2022-06-30 12:49:15 -04:00
parent bef160745a
commit 587b7f38ce
2 changed files with 9 additions and 9 deletions

View File

@ -56,7 +56,7 @@ func (d *Db) Add(i Item) (int, bool) {
return i.Id, true
}
func (d *Db) Update(id int, persist bool, f func(*Item)) error {
func (d *Db) Transact(id int, persist bool, f func(*Item)) error {
d.mutex.Lock()
defer d.mutex.Unlock()
for i, _ := range d.items {