From 70d5802fce60bf8c9ec06df4412dd95576afb3f6 Mon Sep 17 00:00:00 2001 From: Gustvo Chain Date: Fri, 16 Nov 2018 16:37:09 +0100 Subject: [PATCH] Remove outdated package documentation Both, dht.go and dht_bootstrap.go duplicate the package documentation. The whole block had been moved to doc.go Also query.go provides documentation for query package but now it belongs to dht package, so it's been removed. --- dht.go | 2 -- doc.go | 3 +++ query.go | 5 ----- 3 files changed, 3 insertions(+), 7 deletions(-) create mode 100644 doc.go diff --git a/dht.go b/dht.go index 809b761..aa531aa 100644 --- a/dht.go +++ b/dht.go @@ -1,5 +1,3 @@ -// Package dht implements a distributed hash table that satisfies the ipfs routing -// interface. This DHT is modeled after kademlia with S/Kademlia modifications. package dht import ( diff --git a/doc.go b/doc.go new file mode 100644 index 0000000..acbb181 --- /dev/null +++ b/doc.go @@ -0,0 +1,3 @@ +// Package dht implements a distributed hash table that satisfies the ipfs routing +// interface. This DHT is modeled after kademlia with S/Kademlia modifications. +package dht diff --git a/query.go b/query.go index 01ca880..8794dea 100644 --- a/query.go +++ b/query.go @@ -1,8 +1,3 @@ -// package query implement a query manager to drive concurrent workers -// to query the DHT. A query is setup with a target key, a queryFunc tasked -// to communicate with a peer, and a set of initial peers. As the query -// progress, queryFunc can return closer peers that will be used to navigate -// closer to the target key in the DHT until an answer is reached. package dht import (