not about a history-keeper anti-pattern

pull/1/head
ansuz 5 years ago
parent f17d14fd99
commit 342aea705a

@ -161,6 +161,10 @@ var createUser = function (config, cb) {
})); }));
}).nThen(function (w) { }).nThen(function (w) {
// give the server time to write your mailbox data before checking that it's correct // give the server time to write your mailbox data before checking that it's correct
// XXX chainpad-server sends an ACK before the channel has actually been created
// causing you to think that everything is good.
// without this timeout the GET_METADATA rpc occasionally returns before
// the metadata has actually been written to the disk.
setTimeout(w(), 500); setTimeout(w(), 500);
}).nThen(function (w) { }).nThen(function (w) {
// confirm that you own your mailbox // confirm that you own your mailbox

Loading…
Cancel
Save