made saving the stream instant async
This commit is contained in:
parent
bd69f7b914
commit
1afed82777
1 changed files with 1 additions and 2 deletions
3
main.go
3
main.go
|
@ -50,8 +50,7 @@ func stream(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
img := getStreamInstant(URL)
|
img := getStreamInstant(URL)
|
||||||
|
|
||||||
// TODO async for this?
|
go saveStreamInstant(URL, img)
|
||||||
saveStreamInstant(URL, img)
|
|
||||||
|
|
||||||
streamDir := URLToBase64(URL)
|
streamDir := URLToBase64(URL)
|
||||||
streamStoreDir := filepath.Join(".", "streams", string(streamDir))
|
streamStoreDir := filepath.Join(".", "streams", string(streamDir))
|
||||||
|
|
Loading…
Add table
Reference in a new issue