Skip to content

Commit

Permalink
v1.2.99build4
Browse files Browse the repository at this point in the history
  • Loading branch information
zoernert committed Mar 30, 2022
1 parent c397980 commit aaa7a7a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions TydidsP2P.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,15 +200,14 @@ const TydidsP2P = {
}

const _updateGraph = async function() {
console.log("_updateGraph",identity.address);
hub.broadcast(identity.address,node);
}

const _inGraphRetrieveOnce = async function(address,_revision,_wait) {
return new Promise(async function(resolve, reject) {
hub.subscribe(address)
.on('data', function (message) {
console.log("data",address,message);
//console.log("data",address,message);
resolve(message);
})
});
Expand All @@ -225,8 +224,7 @@ const TydidsP2P = {
if(address == node.identity.address) {
_revision = node.revision;
}
}
console.log("_retrievePresentationJWT",address);
}
let inGraph = await _inGraphRetrieveOnce(address,_revision);
resolve(inGraph)
});
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tydids-p2p",
"version": "1.2.99build3",
"version": "1.2.99build4",
"description": "A consensus driven decentralized data governance framework.",
"main": "./TydidsP2P.js",
"bin": {
Expand Down

0 comments on commit aaa7a7a

Please sign in to comment.