mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-21 20:26:41 +00:00
modify doc
This commit is contained in:
parent
55ca0d1445
commit
5425224f59
2 changed files with 1 additions and 6 deletions
|
|
@ -3,11 +3,8 @@ package bzz
|
||||||
/*
|
/*
|
||||||
DHT implements the chunk store that directly communicates with the bzz protocol on the one hand and the kademlia node table on the other.
|
DHT implements the chunk store that directly communicates with the bzz protocol on the one hand and the kademlia node table on the other.
|
||||||
It accumulates requests from peers, keeping a request pool and does forwarding for incoming requests and handles expiry/timeout.
|
It accumulates requests from peers, keeping a request pool and does forwarding for incoming requests and handles expiry/timeout.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// it implements the ChunkStore interface as well as the PeerPool interface for bzz
|
// it implements the ChunkStore interface
|
||||||
type DHTStore struct {
|
type DHTStore struct {
|
||||||
// note that it should be initialised with the same Cademlia instance that runs under the base protocol
|
|
||||||
// cad: *p2p.Cademlia
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -282,8 +282,6 @@ func (s *dpaMemStorage) Put(req *Chunk) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// process retrieve channel requests
|
|
||||||
|
|
||||||
func (s *dpaMemStorage) Get(req *Chunk) {
|
func (s *dpaMemStorage) Get(req *Chunk) {
|
||||||
|
|
||||||
entry := s.find(req.Key)
|
entry := s.find(req.Key)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue