From 76b88edf8d558f26376d35bbde580ff32ed624ce Mon Sep 17 00:00:00 2001 From: Ambrose Bonnaire-Sergeant Date: Mon, 13 Feb 2023 19:37:58 -0500 Subject: [PATCH] support JDK 19's Thread/sleep --- 11/playsync/src/playsync/core.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/11/playsync/src/playsync/core.clj b/11/playsync/src/playsync/core.clj index f540ed7..f6e9d91 100644 --- a/11/playsync/src/playsync/core.clj +++ b/11/playsync/src/playsync/core.clj @@ -34,7 +34,7 @@ (defn upload [headshot c] - (go (Thread/sleep (rand 100)) + (go (Thread/sleep (long (rand 100))) (>! c headshot)))