You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@seata.apache.org by zf...@apache.org on 2025/05/24 12:10:51 UTC

(incubator-seata-go) branch feature/saga updated: change the StateLangStore type (#812)

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 <33...@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-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org