Skip to content

Commit 3725a33

Browse files
committed
rename job-type
1 parent 9fdf64e commit 3725a33

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

clojure/wheel/src/wheel/infra/cron/job/allocate_order.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
(qj/defjob AllocateOrderJob [ctx]
77
(job/handle channel/allocate-order ctx))
88

9-
(defmethod job/jobtype :allocate-order [_]
9+
(defmethod job/job-type :allocate-order [_]
1010
AllocateOrderJob)

clojure/wheel/src/wheel/infra/cron/job/core.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
[wheel.middleware.event :as event]
99
[wheel.infra.log :as log]))
1010

11-
(defmulti jobtype :type)
11+
(defmulti job-type :type)
1212

1313
(defn- identifier [{:keys [channel-id type]}]
1414
(str channel-id "/" (name type)))
1515

1616
(defn- create-job [channel-config cron-job-config]
1717
(qj/build
18-
(qj/of-type (jobtype cron-job-config))
18+
(qj/of-type (job-type cron-job-config))
1919
(qj/using-job-data {:channel-config channel-config
2020
:cron-job-config cron-job-config})
2121
(qj/with-identity (qj/key (identifier cron-job-config)))))

0 commit comments

Comments
 (0)