@@ -112,12 +112,12 @@ type (
112112 isReplay bool // flag to indicate if workflow is in replay mode
113113 enableLoggingInReplay bool // flag to indicate if workflow should enable logging in replay mode
114114
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
121121 }
122122
123123 localActivityTask struct {
@@ -201,24 +201,24 @@ func newWorkflowExecutionEventHandler(
201201 dataConverter DataConverter ,
202202 contextPropagators []ContextPropagator ,
203203 tracer opentracing.Tracer ,
204- workflowInterceptors []WorkflowInterceptorFactory ,
204+ workflowInterceptorFactories []WorkflowInterceptorFactory ,
205205) workflowExecutionEventHandler {
206206 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 ,
222222 }
223223 context .logger = logger .With (
224224 zapcore.Field {Key : tagWorkflowType , Type : zapcore .StringType , String : workflowInfo .WorkflowType .Name },
@@ -771,7 +771,7 @@ func (wc *workflowEnvironmentImpl) GetRegistry() *registry {
771771}
772772
773773func (wc * workflowEnvironmentImpl ) GetWorkflowInterceptors () []WorkflowInterceptorFactory {
774- return wc .workflowInterceptors
774+ return wc .workflowInterceptorFactories
775775}
776776
777777func (weh * workflowExecutionEventHandlerImpl ) ProcessEvent (
0 commit comments