complete meter

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2023-01-05 16:03:21 +03:00
parent c06d87fe0a
commit b2eb8e6c5c
5 changed files with 235 additions and 32 deletions

6
tx.go
View File

@@ -18,7 +18,8 @@ func (w *wrapperTx) Commit() error {
if w.span != nil {
defer w.span.Finish()
}
return w.tx.Commit()
err := w.tx.Commit()
return err
}
// Rollback implements driver.Tx Rollback
@@ -26,5 +27,6 @@ func (w *wrapperTx) Rollback() error {
if w.span != nil {
defer w.span.Finish()
}
return w.tx.Rollback()
err := w.tx.Rollback()
return err
}