From 95489fcf4973aabb858dd1a1806dd996d537371c Mon Sep 17 00:00:00 2001 From: hoteas Date: Sat, 29 May 2021 00:41:17 +0800 Subject: [PATCH] =?UTF-8?q?=09=E5=AE=8C=E5=96=84error=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db/db.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/db.go b/db/db.go index dcc257c..2226a32 100644 --- a/db/db.go +++ b/db/db.go @@ -42,7 +42,7 @@ func (that *HoTimeDB) GetType() string { // Action 事务,如果action返回true则执行成功;false则回滚 func (that *HoTimeDB) Action(action func(db HoTimeDB) bool) bool { - db := HoTimeDB{DB: that.DB, HoTimeCache: that.HoTimeCache} + db := HoTimeDB{DB: that.DB, HoTimeCache: that.HoTimeCache, Prefix: that.Prefix} tx, err := db.Begin() if err != nil { that.LastErr.SetError(err)