Merge pull request #16071 from holiman/lintfix

node, rpc: fix linter issues
pull/16073/head
Péter Szilágyi 7 years ago committed by GitHub
commit 70fbc87379
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      node/node.go
  2. 1
      rpc/http.go

@ -324,7 +324,7 @@ func (n *Node) startIPC(apis []rpc.API) error {
return err
}
go func() {
n.log.Info("IPC endpoint opened", "url", fmt.Sprintf("%s", n.ipcEndpoint))
n.log.Info("IPC endpoint opened", "url", n.ipcEndpoint)
for {
conn, err := listener.Accept()

@ -245,7 +245,6 @@ func (h *virtualHostHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
return
}
http.Error(w, "invalid host specified", http.StatusForbidden)
return
}
func newVHostHandler(vhosts []string, next http.Handler) http.Handler {

Loading…
Cancel
Save