flypiggyyoyoyo commented on code in PR #871:
URL:
https://github.com/apache/incubator-seata-go/pull/871#discussion_r2314961650
##########
pkg/saga/statemachine/engine/config/default_statemachine_config.go:
##########
@@ -732,3 +735,22 @@ func WithStateMachineRepository(machineRepo
repo.StateMachineRepository) Option
c.stateMachineRepository = machineRepo
}
}
+
+func WithConfigPath(path string) Option {
+ return func(c *DefaultStateMachineConfig) {
+ if path == "" {
Review Comment:
If the path is empty, the external configuration file will not be loaded.
Instead, the state machine will use the default configuration defined in
NewDefaultStateMachineConfig, such as transOperationTimeout.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]