We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b51bcc1 commit 51cbc5fCopy full SHA for 51cbc5f
src/temporal/side_effect.clj
@@ -2,11 +2,10 @@
2
3
(ns temporal.side-effect
4
"Methods for managing side-effects from within workflows"
5
- (:require [taoensso.timbre :as log]
6
- [taoensso.nippy :as nippy]
+ (:require [taoensso.nippy :as nippy]
7
[temporal.internal.utils :refer [->Func] :as u])
8
(:import [io.temporal.workflow Workflow]
9
- [java.time LocalTime]))
+ [java.time Instant]))
10
11
(defn gen-uuid
12
"A side-effect friendly random UUID generator"
@@ -21,6 +20,6 @@
21
20
(->Func (fn [] (nippy/freeze (f)))))))
22
23
(defn now
24
- "Returns the java.time.LocalTime as a SideEffect"
+ "Returns the java.time.Instant as a SideEffect"
25
[]
26
- (invoke #(LocalTime/now)))
+ (invoke #(Instant/now)))
0 commit comments