You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ac...@apache.org on 2016/10/25 00:55:59 UTC
[2/5] qpid-proton git commit: PROTON-1331: go:
electron.Container.Dial returning (nil, nil)
PROTON-1331: go: electron.Container.Dial returning (nil, nil)
Scope error, creating new "err" variable instead of setting return variable.
Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/a17d30a2
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/a17d30a2
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/a17d30a2
Branch: refs/heads/aconway-libuv-driver
Commit: a17d30a2de5c68fd3ffa4d34da6cefa2e727bbdb
Parents: a1f0dd1
Author: Alan Conway <ac...@redhat.com>
Authored: Mon Oct 24 20:22:25 2016 -0400
Committer: Alan Conway <ac...@redhat.com>
Committed: Mon Oct 24 20:52:30 2016 -0400
----------------------------------------------------------------------
proton-c/bindings/go/src/qpid.apache.org/electron/container.go | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/a17d30a2/proton-c/bindings/go/src/qpid.apache.org/electron/container.go
----------------------------------------------------------------------
diff --git a/proton-c/bindings/go/src/qpid.apache.org/electron/container.go b/proton-c/bindings/go/src/qpid.apache.org/electron/container.go
index 4cf5969..efb24ff 100644
--- a/proton-c/bindings/go/src/qpid.apache.org/electron/container.go
+++ b/proton-c/bindings/go/src/qpid.apache.org/electron/container.go
@@ -88,14 +88,16 @@ func (cont *container) Connection(conn net.Conn, opts ...ConnectionOption) (Conn
}
func (cont *container) Dial(network, address string, opts ...ConnectionOption) (c Connection, err error) {
- if conn, err := net.Dial(network, address); err == nil {
+ conn, err := net.Dial(network, address)
+ if err == nil {
c, err = cont.Connection(conn, opts...)
}
return
}
func (cont *container) Accept(l net.Listener, opts ...ConnectionOption) (c Connection, err error) {
- if conn, err := l.Accept(); err == nil {
+ conn, err := l.Accept()
+ if err == nil {
c, err = cont.Connection(conn, append(opts, Server())...)
}
return
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org