Skip to content

Commit 51cbc5f

Browse files
committed
Use java.time.Instant for side-effect/now
Signed-off-by: Greg Haskins <[email protected]>
1 parent b51bcc1 commit 51cbc5f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/temporal/side_effect.clj

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22

33
(ns temporal.side-effect
44
"Methods for managing side-effects from within workflows"
5-
(:require [taoensso.timbre :as log]
6-
[taoensso.nippy :as nippy]
5+
(:require [taoensso.nippy :as nippy]
76
[temporal.internal.utils :refer [->Func] :as u])
87
(:import [io.temporal.workflow Workflow]
9-
[java.time LocalTime]))
8+
[java.time Instant]))
109

1110
(defn gen-uuid
1211
"A side-effect friendly random UUID generator"
@@ -21,6 +20,6 @@
2120
(->Func (fn [] (nippy/freeze (f)))))))
2221

2322
(defn now
24-
"Returns the java.time.LocalTime as a SideEffect"
23+
"Returns the java.time.Instant as a SideEffect"
2524
[]
26-
(invoke #(LocalTime/now)))
25+
(invoke #(Instant/now)))

0 commit comments

Comments
 (0)