diff --git a/README.md b/README.md index e848e62c..77446bd0 100644 --- a/README.md +++ b/README.md @@ -75,6 +75,7 @@ See the [examples](https://github.com/go-micro/examples) for detailed informatio See [github.com/go-micro](https://github.com/go-micro) for tooling. +- [API](https://github.com/go-micro/api) - [CLI](https://github.com/go-micro/cli) - [Demo](https://github.com/go-micro/demo) - [Plugins](https://github.com/go-micro/plugins) diff --git a/transport/http_transport.go b/transport/http_transport.go index def8a49e..0585fb02 100644 --- a/transport/http_transport.go +++ b/transport/http_transport.go @@ -153,12 +153,11 @@ func (h *httpTransportClient) Recv(m *Message) error { } h.Lock() + defer h.Unlock() if h.closed { - h.Unlock() return io.EOF } rsp, err := http.ReadResponse(h.buff, r) - h.Unlock() if err != nil { return err }