Browse Source

appease go vet

Alan Shreve 12 years ago
parent
commit
69efd181bb
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/ngrok/client/main.go
  2. 1 1
      src/ngrok/client/views/web/http.go

+ 1 - 1
src/ngrok/client/main.go

@@ -171,7 +171,7 @@ func control(s *State, ctl *ui.Controller) {
 
 	if regAck.Error != "" {
 		emsg := fmt.Sprintf("Server failed to allocate tunnel: %s", regAck.Error)
-		ctl.Cmds <- ui.CmdQuit{emsg}
+		ctl.Cmds <- ui.CmdQuit{Message: emsg}
 		return
 	}
 

+ 1 - 1
src/ngrok/client/views/web/http.go

@@ -81,7 +81,7 @@ func (h *WebHttpView) register() {
 			if err != nil {
 				panic(err)
 			}
-			h.ctl.Cmds <- ui.CmdRequest{bodyBytes}
+			h.ctl.Cmds <- ui.CmdRequest{Payload: bodyBytes}
 			w.Write([]byte(http.StatusText(200)))
 		} else {
 			// XXX: 400