This is an automated email from the ASF dual-hosted git repository.

zfeng pushed a commit to branch feature/saga
in repository https://gitbox.apache.org/repos/asf/incubator-seata-go.git


The following commit(s) were added to refs/heads/feature/saga by this push:
     new d51b3440 change the StateLangStore type (#812)
d51b3440 is described below

commit d51b3440024df2cd0a97050af171a1c3704a9835
Author: lxfeng1997 <33981743+lxfeng1...@users.noreply.github.com>
AuthorDate: Sat May 24 20:10:46 2025 +0800

    change the StateLangStore type (#812)
---
 pkg/saga/statemachine/store/repository/state_machine_repository.go | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/pkg/saga/statemachine/store/repository/state_machine_repository.go 
b/pkg/saga/statemachine/store/repository/state_machine_repository.go
index da31406e..6628d8dc 100644
--- a/pkg/saga/statemachine/store/repository/state_machine_repository.go
+++ b/pkg/saga/statemachine/store/repository/state_machine_repository.go
@@ -23,10 +23,10 @@ import (
        "time"
 
        "github.com/seata/seata-go/pkg/saga/statemachine/constant"
+       "github.com/seata/seata-go/pkg/saga/statemachine/engine/core"
        "github.com/seata/seata-go/pkg/saga/statemachine/engine/sequence"
        "github.com/seata/seata-go/pkg/saga/statemachine/statelang"
        "github.com/seata/seata-go/pkg/saga/statemachine/statelang/parser"
-       "github.com/seata/seata-go/pkg/saga/statemachine/store/db"
        "github.com/seata/seata-go/pkg/util/log"
 )
 
@@ -43,7 +43,7 @@ type StateMachineRepositoryImpl struct {
        stateMachineMapById            map[string]statelang.StateMachine
        stateMachineMapByNameAndTenant map[string]statelang.StateMachine
 
-       stateLangStore  *db.StateLangStore
+       stateLangStore  core.StateLangStore
        seqGenerator    sequence.SeqGenerator
        defaultTenantId string
        jsonParserName  string
@@ -54,7 +54,6 @@ type StateMachineRepositoryImpl struct {
 func GetStateMachineRepositoryImpl() *StateMachineRepositoryImpl {
        if stateMachineRepositoryImpl == nil {
                onceStateMachineRepositoryImpl.Do(func() {
-                       //TODO get charset by config
                        //TODO charset is not use
                        //TODO using json parser
                        stateMachineRepositoryImpl = 
&StateMachineRepositoryImpl{
@@ -205,7 +204,7 @@ func (s *StateMachineRepositoryImpl) 
RegistryStateMachineByReader(reader io.Read
        return nil
 }
 
-func (s *StateMachineRepositoryImpl) SetStateLangStore(stateLangStore 
*db.StateLangStore) {
+func (s *StateMachineRepositoryImpl) SetStateLangStore(stateLangStore 
core.StateLangStore) {
        s.stateLangStore = stateLangStore
 }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@seata.apache.org
For additional commands, e-mail: notifications-h...@seata.apache.org

Reply via email to