@@ -112,12 +112,12 @@ type (
112
112
isReplay bool // flag to indicate if workflow is in replay mode
113
113
enableLoggingInReplay bool // flag to indicate if workflow should enable logging in replay mode
114
114
115
- metricsScope tally.Scope
116
- registry * registry
117
- dataConverter DataConverter
118
- contextPropagators []ContextPropagator
119
- tracer opentracing.Tracer
120
- workflowInterceptors []WorkflowInterceptorFactory
115
+ metricsScope tally.Scope
116
+ registry * registry
117
+ dataConverter DataConverter
118
+ contextPropagators []ContextPropagator
119
+ tracer opentracing.Tracer
120
+ workflowInterceptorFactories []WorkflowInterceptorFactory
121
121
}
122
122
123
123
localActivityTask struct {
@@ -201,24 +201,24 @@ func newWorkflowExecutionEventHandler(
201
201
dataConverter DataConverter ,
202
202
contextPropagators []ContextPropagator ,
203
203
tracer opentracing.Tracer ,
204
- workflowInterceptors []WorkflowInterceptorFactory ,
204
+ workflowInterceptorFactories []WorkflowInterceptorFactory ,
205
205
) workflowExecutionEventHandler {
206
206
context := & workflowEnvironmentImpl {
207
- workflowInfo : workflowInfo ,
208
- decisionsHelper : newDecisionsHelper (),
209
- sideEffectResult : make (map [int32 ][]byte ),
210
- mutableSideEffect : make (map [string ][]byte ),
211
- changeVersions : make (map [string ]Version ),
212
- pendingLaTasks : make (map [string ]* localActivityTask ),
213
- unstartedLaTasks : make (map [string ]struct {}),
214
- openSessions : make (map [string ]* SessionInfo ),
215
- completeHandler : completeHandler ,
216
- enableLoggingInReplay : enableLoggingInReplay ,
217
- registry : registry ,
218
- dataConverter : dataConverter ,
219
- contextPropagators : contextPropagators ,
220
- tracer : tracer ,
221
- workflowInterceptors : workflowInterceptors ,
207
+ workflowInfo : workflowInfo ,
208
+ decisionsHelper : newDecisionsHelper (),
209
+ sideEffectResult : make (map [int32 ][]byte ),
210
+ mutableSideEffect : make (map [string ][]byte ),
211
+ changeVersions : make (map [string ]Version ),
212
+ pendingLaTasks : make (map [string ]* localActivityTask ),
213
+ unstartedLaTasks : make (map [string ]struct {}),
214
+ openSessions : make (map [string ]* SessionInfo ),
215
+ completeHandler : completeHandler ,
216
+ enableLoggingInReplay : enableLoggingInReplay ,
217
+ registry : registry ,
218
+ dataConverter : dataConverter ,
219
+ contextPropagators : contextPropagators ,
220
+ tracer : tracer ,
221
+ workflowInterceptorFactories : workflowInterceptorFactories ,
222
222
}
223
223
context .logger = logger .With (
224
224
zapcore.Field {Key : tagWorkflowType , Type : zapcore .StringType , String : workflowInfo .WorkflowType .Name },
@@ -771,7 +771,7 @@ func (wc *workflowEnvironmentImpl) GetRegistry() *registry {
771
771
}
772
772
773
773
func (wc * workflowEnvironmentImpl ) GetWorkflowInterceptors () []WorkflowInterceptorFactory {
774
- return wc .workflowInterceptors
774
+ return wc .workflowInterceptorFactories
775
775
}
776
776
777
777
func (weh * workflowExecutionEventHandlerImpl ) ProcessEvent (
0 commit comments