removed response writer

This commit is contained in:
Falko Victor Habel 2024-07-29 17:47:27 +02:00
parent 2da06410e8
commit 34075e6da5
1 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ func downloadPackages(w http.ResponseWriter, fromLanguage, toLanguage string) {
messages := make(chan string)
defer close(messages)
go extractMessage(w, messages)
go extractMessage(messages)
cmd := exec.Command(linux, "translator/download.py", fromLanguage, toLanguage)
output, err := cmd.StdoutPipe()
@ -86,7 +86,7 @@ func executeTranslator(w http.ResponseWriter, message, fromLanguage, toLanguage
messages := make(chan string)
defer close(messages)
go extractMessage(w, messages)
go extractMessage(messages)
cmd := exec.Command(linux, "translator/translate.py", message, fromLanguage, toLanguage)
output, err := cmd.StdoutPipe()