beam: replace SendPair() with the simpler SendConn()

Docker-DCO-1.1-Signed-off-by: Solomon Hykes <solomon@docker.com> (github: shykes)
This commit is contained in:
Solomon Hykes 2014-03-31 11:58:29 -07:00
parent e92f305c1c
commit c27c56ca37
2 changed files with 12 additions and 12 deletions

View file

@ -17,13 +17,13 @@ import (
// not point to a connection, that message will be skipped.
//
func Listen(conn Sender, name string) (net.Listener, error) {
in, _, err := SendPair(conn, []byte(name))
endpoint, err := SendConn(conn, []byte(name))
if err != nil {
return nil, err
}
return &listener{
name: name,
endpoint: in,
endpoint: endpoint,
}, nil
}