diff --git a/README.md b/README.md index 8f768f9..86028d5 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ Take note of your public key. We just create a dummy source core for this example: -``` +```js import Corestore from 'corestore' import Hyperswarm from 'hyperswarm' @@ -55,7 +55,9 @@ await core.ready() for (let i = core.length; i < desiredLength; i++) await core.append(`Block-${i}`) const swarm = new Hyperswarm() -swarm.on('connection', (conn) => { store.replicate(conn) }) +swarm.on('connection', (conn) => { + store.replicate(conn) +}) swarm.join(core.discoveryKey) console.log(`Swarming key ${core.id} (length ${core.length})`) ``` @@ -164,7 +166,7 @@ Waiting for remote seeders to pick up the changes... Please add this key to the seeders now. The logs here will notify you when it is picked up by them. Do not shut down until that happens. ``` -Do as the logs instruct, and add your target key to 2 or more seeders. For this example, simple run 2 more seeder scripts like above, but this time for the target key. +Do as the logs instruct, and add your target key to 2 or more seeders. For this example, simply run 2 more seeder scripts like above, but this time for the target key. Once the program detects at least 2 seeders have fully downloaded the multisig drive, it will inform you it is done. Shut down with ctrl-c.