Skip to content

Commit a365bc9

Browse files
committed
refactor: change Params from map to slice for CronJobParam
1 parent 3e7b685 commit a365bc9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

internal/job/init.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@ type CronJobParam struct {
1313
ReplaceRMStatic bool
1414
}
1515

16-
var Params = map[string]CronJobParam{
17-
common.UpstreamNameGroupRankInfo: {
16+
var Params = []CronJobParam{
17+
{
1818
Name: common.UpstreamNameGroupRankInfo,
1919
Url: common.UpstreamUrlGroupRankInfo,
2020
ReplaceRMStatic: false,
2121
},
22-
common.UpstreamNameRobotData: {
22+
{
2323
Name: common.UpstreamNameRobotData,
2424
Url: common.UpstreamUrlRobotData,
2525
ReplaceRMStatic: false,
2626
},
27-
common.UpstreamNameSchedule: {
27+
{
2828
Name: common.UpstreamNameSchedule,
2929
Url: common.UpstreamUrlSchedule,
3030
ReplaceRMStatic: true,

0 commit comments

Comments
 (0)