Make OrbitDB use ipfs-log

This commit is contained in:
haad
2016-03-21 10:26:53 +01:00
parent 3f06f0a707
commit bb4f4ce42e
2 changed files with 20 additions and 27 deletions

View File

@@ -21,7 +21,7 @@ class Client {
if(password === undefined) password = '';
if(subscribe === undefined) subscribe = true;
this.db.use(channel, this.user, password);
await(this.db.use(channel, this.user, password));
this.db.events[channel].on('write', this._onWrite.bind(this));
this.db.events[channel].on('sync', this._onSync.bind(this));