mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-06-29 09:12:31 +00:00
Testing
This commit is contained in:
parent
03ef4fe5ff
commit
d60f8d66a2
@ -179,7 +179,7 @@ class OrbitClient {
|
||||
// console.log("posting...")
|
||||
message = this._createMessage(channel, password, operation, key, value);
|
||||
res = await(this._pubsub.publish(channel, message.hash, message.seq));
|
||||
// if(!res) console.log("retry")
|
||||
// if(!res) console.log("retry", message)
|
||||
}
|
||||
// console.log("posted")
|
||||
return message.Hash;
|
||||
@ -211,7 +211,6 @@ class OrbitClient {
|
||||
// this.client = this._pubsub._client;
|
||||
// this.user = this.client.info.user;
|
||||
this.user = { id: 'hello' }
|
||||
console.log("Connected to redis")
|
||||
// this.network = {
|
||||
// id: this.client.info.networkId,
|
||||
// name: this.client.info.name,
|
||||
|
@ -40,13 +40,13 @@ class PubSub {
|
||||
this.publishQueue.splice(0, 0, { hash: message.Hash, callback: resolve });
|
||||
this.client2.publish(hash, JSON.stringify({ hash: message.Hash, seq: seq }));
|
||||
} else {
|
||||
console.log("too early")
|
||||
// console.log("too early")
|
||||
// resolve(false);
|
||||
}
|
||||
setTimeout(() => {
|
||||
this.publishQueue.pop();
|
||||
resolve(false);
|
||||
}, 2000)
|
||||
// setTimeout(() => {
|
||||
// this.publishQueue.pop();
|
||||
// resolve(false);
|
||||
// }, 200)
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user