|
@@ -23,12 +23,10 @@ func Init(stateStoreName string, sagaName string) {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
- initOnce.Do(func() {
|
|
|
- sagaInstance = new(Saga)
|
|
|
- sagaInstance.stateStoreName = stateStoreName
|
|
|
- sagaInstance.name = sagaName
|
|
|
- sagaInstance.orchestrators = make([]*Orchestrator, 0)
|
|
|
- })
|
|
|
+ sagaInstance = new(Saga)
|
|
|
+ sagaInstance.stateStoreName = stateStoreName
|
|
|
+ sagaInstance.name = sagaName
|
|
|
+ sagaInstance.orchestrators = make([]*Orchestrator, 0)
|
|
|
}
|
|
|
|
|
|
func Destroy() {
|