@@ -20,6 +20,7 @@ import (
2020 "github.com/temporalio/roadrunner-temporal/v5/internal"
2121 "github.com/temporalio/roadrunner-temporal/v5/internal/codec/proto"
2222 tclient "go.temporal.io/sdk/client"
23+ "go.temporal.io/sdk/converter"
2324 "go.temporal.io/sdk/worker"
2425 "go.uber.org/zap"
2526
@@ -61,7 +62,8 @@ type temporal struct {
6162 client tclient.Client
6263 workers []worker.Worker
6364
64- interceptors map [string ]api.Interceptor
65+ interceptors map [string ]api.Interceptor
66+ customDataConverter converter.PayloadConverter
6567}
6668
6769type Plugin struct {
@@ -285,7 +287,7 @@ func (p *Plugin) Workers() []*process.State {
285287 for i := range wfPw {
286288 st , err := process .WorkerProcessState (wfPw [i ])
287289 if err != nil {
288- // log error and continue
290+ // log the error and continue
289291 p .log .Error ("worker process state error" , zap .Error (err ))
290292 continue
291293 }
@@ -296,7 +298,7 @@ func (p *Plugin) Workers() []*process.State {
296298 for i := range actPw {
297299 st , err := process .WorkerProcessState (actPw [i ])
298300 if err != nil {
299- // log error and continue
301+ // log the error and continue
300302 p .log .Error ("worker process state error" , zap .Error (err ))
301303 continue
302304 }
@@ -410,6 +412,9 @@ func (p *Plugin) Collects() []*dep.In {
410412 p .temporal .interceptors [mdw .Name ()] = mdw
411413 p .mu .Unlock ()
412414 }, (* api .Interceptor )(nil )),
415+ dep .Fits (func (pp any ) {
416+ p .temporal .customDataConverter = pp .(converter.PayloadConverter )
417+ }, (* converter .PayloadConverter )(nil )),
413418 }
414419}
415420
0 commit comments