2
0

Messages use Bytes instead of WriteTo

This commit is contained in:
Jack Christensen
2013-03-30 18:08:47 -05:00
parent 5563e0c825
commit 05f94f7107
2 changed files with 5 additions and 14 deletions
+2 -4
View File
@@ -24,9 +24,7 @@ func Connect(options map[string] string) (c *conn, err error) {
msg := newStartupMessage()
msg.options["user"] = "jack"
msg.WriteTo(c.conn)
c.conn.Write(msg.Bytes())
buf := make([]byte, 512)
@@ -37,4 +35,4 @@ func Connect(options map[string] string) (c *conn, err error) {
println(num)
return c, nil
}
}