bug fix related to rename old function callings as well
This commit is contained in:
parent
f2ee3fcb7f
commit
2da06410e8
4
main.go
4
main.go
|
@ -41,7 +41,7 @@ func downloadPackages(w http.ResponseWriter, fromLanguage, toLanguage string) {
|
||||||
messages := make(chan string)
|
messages := make(chan string)
|
||||||
defer close(messages)
|
defer close(messages)
|
||||||
|
|
||||||
go streamResponse(w, messages)
|
go extractMessage(w, messages)
|
||||||
|
|
||||||
cmd := exec.Command(linux, "translator/download.py", fromLanguage, toLanguage)
|
cmd := exec.Command(linux, "translator/download.py", fromLanguage, toLanguage)
|
||||||
output, err := cmd.StdoutPipe()
|
output, err := cmd.StdoutPipe()
|
||||||
|
@ -86,7 +86,7 @@ func executeTranslator(w http.ResponseWriter, message, fromLanguage, toLanguage
|
||||||
messages := make(chan string)
|
messages := make(chan string)
|
||||||
defer close(messages)
|
defer close(messages)
|
||||||
|
|
||||||
go streamResponse(w, messages)
|
go extractMessage(w, messages)
|
||||||
|
|
||||||
cmd := exec.Command(linux, "translator/translate.py", message, fromLanguage, toLanguage)
|
cmd := exec.Command(linux, "translator/translate.py", message, fromLanguage, toLanguage)
|
||||||
output, err := cmd.StdoutPipe()
|
output, err := cmd.StdoutPipe()
|
||||||
|
|
Loading…
Reference in New Issue