From 2da06410e8c871eba1836c24140c9ed5590b9405 Mon Sep 17 00:00:00 2001 From: Falko Habel Date: Mon, 29 Jul 2024 17:45:54 +0200 Subject: [PATCH] bug fix related to rename old function callings as well --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index a455aa4..e628399 100644 --- a/main.go +++ b/main.go @@ -41,7 +41,7 @@ func downloadPackages(w http.ResponseWriter, fromLanguage, toLanguage string) { messages := make(chan string) defer close(messages) - go streamResponse(w, messages) + go extractMessage(w, 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 streamResponse(w, messages) + go extractMessage(w, messages) cmd := exec.Command(linux, "translator/translate.py", message, fromLanguage, toLanguage) output, err := cmd.StdoutPipe()