@@ -99,34 +99,37 @@ func getSingle(ctx context.Context, cl *clientv3.Client, key string, opts GetOpt
9999}
100100
101101func  pathsFromJobKey (jobKey  * jobKey , namespace  string ) [2 ]string  {
102+ 	const  reminderPath  =  "dapr/jobs/actorreminder" 
103+ 	const  reminderCounterPath  =  "dapr/counters/actorreminder" 
104+ 
102105	var  paths  [2 ]string 
103106	switch  {
104107	case  jobKey .actorType  !=  nil :
105- 		paths [0 ] =  fmt .Sprintf ("dapr/jobs/actorreminder ||%s||%s||%s||%s" ,
106- 			namespace , * jobKey .actorType , * jobKey .actorID , jobKey .name ,
108+ 		paths [0 ] =  fmt .Sprintf ("%s ||%s||%s||%s||%s" ,
109+ 			reminderPath ,  namespace , * jobKey .actorType , * jobKey .actorID , jobKey .name ,
107110		)
108- 		paths [1 ] =  fmt .Sprintf ("dapr/counters/actorreminder ||%s||%s||%s||%s" ,
109- 			namespace , * jobKey .actorType , * jobKey .actorID , jobKey .name ,
111+ 		paths [1 ] =  fmt .Sprintf ("%s ||%s||%s||%s||%s" ,
112+ 			reminderCounterPath ,  namespace , * jobKey .actorType , * jobKey .actorID , jobKey .name ,
110113		)
111114
112115	case  jobKey .activity :
113116		actorType  :=  fmt .Sprintf ("dapr.internal.%s.%s.activity" , namespace , * jobKey .appID )
114117		actorID  :=  jobKey .name 
115- 		paths [0 ] =  fmt .Sprintf ("dapr/jobs/actorreminder ||%s||%s||%s||run-activity" ,
116- 			namespace , actorType , actorID ,
118+ 		paths [0 ] =  fmt .Sprintf ("%s ||%s||%s||%s||run-activity" ,
119+ 			reminderPath ,  namespace , actorType , actorID ,
117120		)
118- 		paths [1 ] =  fmt .Sprintf ("dapr/counters/actorreminder ||%s||%s||%s||run-activity" ,
119- 			namespace , actorType , actorID ,
121+ 		paths [1 ] =  fmt .Sprintf ("%s ||%s||%s||%s||run-activity" ,
122+ 			reminderCounterPath ,  namespace , actorType , actorID ,
120123		)
121124
122125	case  jobKey .instanceID  !=  nil :
123126		actorType  :=  fmt .Sprintf ("dapr.internal.%s.%s.workflow" , namespace , * jobKey .appID )
124127		actorID  :=  * jobKey .instanceID 
125- 		paths [0 ] =  fmt .Sprintf ("dapr/jobs/actorreminder ||%s||%s||%s||%s" ,
126- 			namespace , actorType , actorID , jobKey .name ,
128+ 		paths [0 ] =  fmt .Sprintf ("%s ||%s||%s||%s||%s" ,
129+ 			reminderPath ,  namespace , actorType , actorID , jobKey .name ,
127130		)
128- 		paths [1 ] =  fmt .Sprintf ("dapr/counters/actorreminder ||%s||%s||%s||%s" ,
129- 			namespace , actorType , actorID , jobKey .name ,
131+ 		paths [1 ] =  fmt .Sprintf ("%s ||%s||%s||%s||%s" ,
132+ 			reminderCounterPath ,  namespace , actorType , actorID , jobKey .name ,
130133		)
131134
132135	default :
0 commit comments