rpc: comments

This commit is contained in:
Ethan Buchman
2017-08-24 16:25:56 -04:00
parent 2fd8496bc1
commit 9dde1a0bd4
3 changed files with 41 additions and 19 deletions

View File

@ -32,6 +32,7 @@ func (h *myHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
if err != nil {
panic(err)
}
defer conn.Close()
for {
messageType, _, err := conn.ReadMessage()
if err != nil {