@@ -11,10 +11,10 @@ import (
1111 "github.com/spiral/roadrunner/v2/pkg/pool"
1212 rrWorker "github.com/spiral/roadrunner/v2/pkg/worker"
1313 "github.com/spiral/roadrunner/v2/plugins/server"
14+ "github.com/spiral/roadrunner/v2/utils"
1415 roadrunner_temporal "github.com/temporalio/roadrunner-temporal"
1516 "github.com/temporalio/roadrunner-temporal/client"
1617 rrt "github.com/temporalio/roadrunner-temporal/protocol"
17- "github.com/temporalio/roadrunner-temporal/utils"
1818 "go.temporal.io/api/common/v1"
1919 "go.temporal.io/sdk/activity"
2020 "go.temporal.io/sdk/converter"
@@ -23,9 +23,9 @@ import (
2323)
2424
2525// RR_MODE env variable
26- const RR_MODE = "RR_MODE" //nolint:golint ,stylecheck
26+ const RR_MODE = "RR_MODE" //nolint:revive ,stylecheck
2727// RR_CODEC env variable
28- const RR_CODEC = "RR_CODEC" //nolint:golint ,stylecheck
28+ const RR_CODEC = "RR_CODEC" //nolint:revive ,stylecheck
2929
3030//
3131const doNotCompleteOnReturn = "doNotCompleteOnReturn"
@@ -118,7 +118,7 @@ func (pool *activityPoolImpl) ActivityNames() []string {
118118// ActivityNames returns list of all available activity names.
119119func (pool * activityPoolImpl ) GetActivityContext (taskToken []byte ) (context.Context , error ) {
120120 const op = errors .Op ("activity_pool_get_activity_context" )
121- c , ok := pool .running .Load (utils .ToString (taskToken ))
121+ c , ok := pool .running .Load (utils .AsString (taskToken ))
122122 if ! ok {
123123 return nil , errors .E (op , errors .Str ("heartbeat on non running activity" ))
124124 }
@@ -187,8 +187,8 @@ func (pool *activityPoolImpl) executeActivity(ctx context.Context, args *common.
187187 msg .Payloads .Payloads = append (msg .Payloads .Payloads , heartbeatDetails .Payloads ... )
188188 }
189189
190- pool .running .Store (utils .ToString (info .TaskToken ), ctx )
191- defer pool .running .Delete (utils .ToString (info .TaskToken ))
190+ pool .running .Store (utils .AsString (info .TaskToken ), ctx )
191+ defer pool .running .Delete (utils .AsString (info .TaskToken ))
192192
193193 result , err := pool .codec .Execute (pool .wp , rrt.Context {TaskQueue : info .TaskQueue }, msg )
194194 if err != nil {
0 commit comments