diff options
author | Karissa McKelvey <karissa@users.noreply.github.com> | 2016-03-02 14:23:11 -0600 |
---|---|---|
committer | Karissa McKelvey <karissa@users.noreply.github.com> | 2016-03-02 14:23:11 -0600 |
commit | dd8439072932efc944bb289da62a0db94f05a386 (patch) | |
tree | 019a45c7bba71cd91ff2aec4c5995629e9cc648b | |
parent | 6b78edc095ea393e7498ba5dc1525df81dd6b51a (diff) | |
download | dat-docs-dd8439072932efc944bb289da62a0db94f05a386.tar.gz dat-docs-dd8439072932efc944bb289da62a0db94f05a386.zip |
the link needs to be a new hex buffer when passed to join
-rw-r--r-- | diy-dat.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -48,7 +48,7 @@ var swarm = Swarm({ swarm.once('listening', function () { console.log('joining', link) // join the swarm - swarm.join(link) + swarm.join(new Buffer(link, 'hex')) // tell hyperdrive to start downloading/uploading in ./data var archive = drive.get(link, process.cwd() + '/data') archive.ready(function (err) { @@ -70,4 +70,4 @@ swarm.once('listening', function () { }) swarm.listen(DEFAULT_LOCAL_PORT) -```
\ No newline at end of file +``` |