You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by as...@apache.org on 2016/09/16 16:04:26 UTC
[2/4] qpid-proton git commit: PROTON-1303: Use LastIndex instead of
LastIndexByte to compile with go 1.4 too
PROTON-1303: Use LastIndex instead of LastIndexByte to compile with go 1.4 too
Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/b8acb8ae
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/b8acb8ae
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/b8acb8ae
Branch: refs/heads/master
Commit: b8acb8ae53146c6e5726a872e71ee986649c1c16
Parents: 26e7ff8
Author: Andrew Stitcher <as...@apache.org>
Authored: Thu Sep 15 15:14:34 2016 -0400
Committer: Andrew Stitcher <as...@apache.org>
Committed: Fri Sep 16 11:55:06 2016 -0400
----------------------------------------------------------------------
proton-c/bindings/go/src/qpid.apache.org/amqp/url.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/b8acb8ae/proton-c/bindings/go/src/qpid.apache.org/amqp/url.go
----------------------------------------------------------------------
diff --git a/proton-c/bindings/go/src/qpid.apache.org/amqp/url.go b/proton-c/bindings/go/src/qpid.apache.org/amqp/url.go
index d507c62..fd6c8dc 100644
--- a/proton-c/bindings/go/src/qpid.apache.org/amqp/url.go
+++ b/proton-c/bindings/go/src/qpid.apache.org/amqp/url.go
@@ -40,7 +40,7 @@ func splitHostPort(hostport string) (string, string, error) {
}
if hostport[0] == '[' {
// There must be a matching ']' as already validated
- if l := strings.LastIndexByte(hostport, ']'); len(hostport) == l+1 {
+ if l := strings.LastIndex(hostport, "]"); len(hostport) == l+1 {
// trim off '[' and ']'
return hostport[1:l], "", nil
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org