From 1a856a917e3af818d19108830fce206d70a6b0b4 Mon Sep 17 00:00:00 2001 From: Liujian <824010343@qq.com> Date: Fri, 6 Sep 2024 10:32:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=5Fcommit=E8=A1=A8=E5=92=8C?= =?UTF-8?q?=5Flatest=E8=A1=A8=E5=88=9D=E5=A7=8B=E5=8C=96=E5=A4=B1=E8=B4=A5?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/api/service.go | 1 - stores/universally/commit/wtype.go | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/service/api/service.go b/service/api/service.go index 8504887d..13d10d9d 100644 --- a/service/api/service.go +++ b/service/api/service.go @@ -47,5 +47,4 @@ func init() { commit.InitCommitWithKeyService[Proxy]("api", string(HistoryProxy)) commit.InitCommitWithKeyService[Request]("api", string(HistoryRequest)) - } diff --git a/stores/universally/commit/wtype.go b/stores/universally/commit/wtype.go index ee9a967a..116ef1b8 100644 --- a/stores/universally/commit/wtype.go +++ b/stores/universally/commit/wtype.go @@ -22,6 +22,7 @@ type StoreWidthType[H any] struct { func NewCommitWithKey[H any](name, key string) *StoreWidthType[H] { return &StoreWidthType[H]{ Store: Store[H]{ + name: name, latestTableName: name + "_latest", commitTableName: name + "_commit", },