You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ea...@apache.org on 2017/11/14 19:05:52 UTC
qpid-dispatch git commit: DISPATCH-869 Use connection.container to
distinguish unique connections to brokers/clients
Repository: qpid-dispatch
Updated Branches:
refs/heads/master 75d9b7e31 -> c2a935fc8
DISPATCH-869 Use connection.container to distinguish unique connections to brokers/clients
Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/c2a935fc
Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/c2a935fc
Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/c2a935fc
Branch: refs/heads/master
Commit: c2a935fc8bab6d050e6801de8fad1c3fadfbf3df
Parents: 75d9b7e
Author: Ernest Allen <ea...@redhat.com>
Authored: Tue Nov 14 14:05:36 2017 -0500
Committer: Ernest Allen <ea...@redhat.com>
Committed: Tue Nov 14 14:05:36 2017 -0500
----------------------------------------------------------------------
console/stand-alone/plugin/js/qdrTopology.js | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/c2a935fc/console/stand-alone/plugin/js/qdrTopology.js
----------------------------------------------------------------------
diff --git a/console/stand-alone/plugin/js/qdrTopology.js b/console/stand-alone/plugin/js/qdrTopology.js
index a54540d..e3d986b 100644
--- a/console/stand-alone/plugin/js/qdrTopology.js
+++ b/console/stand-alone/plugin/js/qdrTopology.js
@@ -432,12 +432,9 @@ console.log("showEntityForm " + args.entity)
var links = [];
var nodeExists = function (connectionContainer) {
- for (var i=0; i<nodes.length; ++i) {
- if (nodes[i].container === connectionContainer) {
- return i
- }
- }
- return -1
+ return nodes.findIndex( function (node) {
+ return node.container === connectionContainer
+ })
}
var normalExists = function (connectionContainer) {
var normalInfo = {}
@@ -594,7 +591,7 @@ console.log("showEntityForm " + args.entity)
if (target >= 0) {
getLink(source, target, dir, "", source + "-" + target);
}
- } else if (role == "normal" || role == "on-demand" || role === "route-container") {
+ } /* else if (role == "normal" || role == "on-demand" || role === "route-container")*/ {
// not an connection between routers, but an external connection
var name = QDRService.management.topology.nameFromId(id) + "." + connection.identity;
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org