From 70c5a2f2fed2cae24083ec7b40b8dc3a0b85243b Mon Sep 17 00:00:00 2001 From: Ivan Krutov Date: Sun, 19 Apr 2020 12:25:56 +0300 Subject: [PATCH] Small fixes in external-host image code --- selenium/external-host/choose/main.go | 2 +- selenium/external-host/rproxy/main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/selenium/external-host/choose/main.go b/selenium/external-host/choose/main.go index 8340b37eb..36db5b9ba 100644 --- a/selenium/external-host/choose/main.go +++ b/selenium/external-host/choose/main.go @@ -21,7 +21,7 @@ func init() { func main() { var hosts []string if err := json.Unmarshal([]byte(os.Getenv("URLS")), &hosts); err != nil { - fmt.Printf("unmarshall json: %v", err) + fmt.Printf("unmarshal json: %v", err) os.Exit(1) } if l := len(hosts); l > 0 { diff --git a/selenium/external-host/rproxy/main.go b/selenium/external-host/rproxy/main.go index ca4901e54..d89b16228 100644 --- a/selenium/external-host/rproxy/main.go +++ b/selenium/external-host/rproxy/main.go @@ -11,7 +11,7 @@ import ( func main() { u, err := url.Parse(os.Args[1]) if err != nil { - log.Fatal("parse url: %v", err) + log.Fatalf("parse url: %v", err) } log.Fatal(http.ListenAndServe(":4444", httputil.NewSingleHostReverseProxy(u))) }