Skip to content
This repository was archived by the owner on Jul 21, 2023. It is now read-only.

[WIP] Actually implement this#1

Merged
daviddias merged 1 commit intomasterfrom
go-interop
Apr 7, 2017
Merged

[WIP] Actually implement this#1
daviddias merged 1 commit intomasterfrom
go-interop

Conversation

@dignifiedquire
Copy link
Copy Markdown
Member

@dignifiedquire dignifiedquire commented Jan 2, 2017

The dragons still live here. So beware of them.

Things left to do

Comment thread .travis.yml Outdated
@@ -0,0 +1,13 @@
language: node_js
node_js:
- 4
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

6 and stable too

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

update CI

Comment thread README.md Outdated
![](https://img.shields.io/badge/Node.js-%3E%3D4.0.0-orange.svg?style=flat-square)

> JavaScript implementation of the DHT for libp2p
> JavaScript implementation of the Kademlia DHT for libp2p, based on [go-kad-dht](https://github.com/libp2p/go-libp2p-kad-dht).
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/go-kad-dht/go-libp2p-kad-dht

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

update

@daviddias
Copy link
Copy Markdown
Member

@dignifiedquire seeing an error in occasionally:

  1) DHT find peer query:

      Uncaught AssertionError: expected 1 to deeply equal 0
      + expected - actual

      -1
      +0

      at utils.sortClosestPeers (test/index.spec.js:240:51)

Comment thread src/index.js
* @param {number} [maxTimeout=10000] - how long to wait for the the bootstrap query to run, in milliseconds (10s)
* @returns {void}
*/
bootstrapStart (queries, period, maxTimeout) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is, in fact, a discovery service that DHT provides and so as any discovery service it needs to be passed into the discovery mechanisms

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm

@daviddias
Copy link
Copy Markdown
Member

daviddias commented Apr 6, 2017

@dignifiedquire can you elaborate on the work behind (and importance of)

  • Fix all todos
  • ext_test.go
    • get failures
    • not found
    • less than K responses

@dignifiedquire
Copy link
Copy Markdown
Member Author

@dignifiedquire can you elaborate on the work behind (and importance of)

These are nice to haves to check for specific failure behaviour but not crucial for shipping.

Copy link
Copy Markdown
Member

@daviddias daviddias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • rm yarn.lock
  • create issues for the remaining items

Comment thread .travis.yml Outdated
@@ -0,0 +1,13 @@
language: node_js
node_js:
- 4
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

update CI

Comment thread README.md Outdated
![](https://img.shields.io/badge/Node.js-%3E%3D4.0.0-orange.svg?style=flat-square)

> JavaScript implementation of the DHT for libp2p
> JavaScript implementation of the Kademlia DHT for libp2p, based on [go-kad-dht](https://github.com/libp2p/go-libp2p-kad-dht).
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

update

Comment thread README.md
### npm

```sh
> npm i libp2p-dht
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/libp2p-dht/libp2p-kad-dht/g

Comment thread README.md Outdated
### Use in Node.js

```js
const KadDHT = require('libp2p-dht')
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/libp2p-dht/libp2p-kad-dht/g

Comment thread README.md Outdated

## API

See https://libp2p.github.io/js-libp2p-dht
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/libp2p-dht/libp2p-kad-dht/g

Copy link
Copy Markdown
Member

@daviddias daviddias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • david finishes missing things

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants