From 1afed82777090980a4e01e4b126825a732816d1d Mon Sep 17 00:00:00 2001 From: BroodjeAap Date: Mon, 6 Jul 2020 19:50:36 +0000 Subject: [PATCH] made saving the stream instant async --- main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.go b/main.go index 08c0ee4..e5bdad5 100755 --- a/main.go +++ b/main.go @@ -50,8 +50,7 @@ func stream(w http.ResponseWriter, r *http.Request) { img := getStreamInstant(URL) - // TODO async for this? - saveStreamInstant(URL, img) + go saveStreamInstant(URL, img) streamDir := URLToBase64(URL) streamStoreDir := filepath.Join(".", "streams", string(streamDir))