mirror of
https://github.com/fluencelabs/go-libp2p-kad-dht
synced 2025-07-31 03:52:03 +00:00
cleanup unused code
This commit is contained in:
committed by
Steven Allen
parent
b4f7fda731
commit
8ef9d774c9
@@ -320,9 +320,9 @@ func (dht *IpfsDHT) updatePeerValues(ctx context.Context, key string, val []byte
|
||||
}
|
||||
}
|
||||
|
||||
func (dht *IpfsDHT) getValues(ctx context.Context, key string, stopQuery chan struct{}) (<-chan RecvdVal, <-chan []*qu) {
|
||||
func (dht *IpfsDHT) getValues(ctx context.Context, key string, stopQuery chan struct{}) (<-chan RecvdVal, <-chan []*query) {
|
||||
valCh := make(chan RecvdVal, 1)
|
||||
queriesCh := make(chan []*qu, 1)
|
||||
queriesCh := make(chan []*query, 1)
|
||||
|
||||
if rec, err := dht.getLocal(key); rec != nil && err == nil {
|
||||
select {
|
||||
|
Reference in New Issue
Block a user