]> git.scottworley.com Git - reliable-chat/commitdiff
gofmt
authorScott Worley <sworley@chkno.net>
Sun, 19 Aug 2012 05:11:29 +0000 (22:11 -0700)
committerScott Worley <sworley@chkno.net>
Sun, 19 Aug 2012 05:21:53 +0000 (22:21 -0700)
server/server.go
server/server_test.go

index 74e116f610d5b5fbe8f620d68be3149bb188308f..0c40784ed7b4efb657bd55b798c58f0366991a2b 100644 (file)
@@ -154,7 +154,7 @@ func start_server(store Store) {
        })
 
        http.HandleFunc("/robots.txt", func(w http.ResponseWriter, r *http.Request) {
-               w.Write([]byte(robots_txt));
+               w.Write([]byte(robots_txt))
        })
 
        log.Fatal(http.ListenAndServe(*localaddress+":"+strconv.Itoa(*port), nil))
index 208256d8342d365f11326eb598104bd3889f57d3..5031c898a25f1d81359e7cb81c20c9b2e33fefef 100644 (file)
@@ -92,7 +92,7 @@ func TestMultipleListeners(t *testing.T) {
                if len(messages) != 1 {
                        t.FailNow()
                }
-               expectMessage(t,messages[0], at, id, say)
+               expectMessage(t, &messages[0], at, id, say)
        }
        close(store.Get)
        close(store.Add)