Created
April 14, 2020 00:29
-
-
Save nickwynja/0f8374b423ae7aa00c69adf7fa984785 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.command('sync', 'connect to peers and sync', async () => { | |
const ssb = require("./ssb"); | |
const cooler = await ssb({ offline: true }); | |
const { meta } = require("./models")({cooler}); | |
await new Promise((r) => setTimeout(r, 1000)); | |
console.log('syncing'); | |
const done = await meta.sync(); | |
process.exit() | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment