made saving the stream instant async

This commit is contained in:
BroodjeAap 2020-07-06 19:50:36 +00:00
parent bd69f7b914
commit 1afed82777

View file

@ -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))