cleanup unused code

This commit is contained in:
Adin Schmahmann
2020-02-19 12:23:18 -05:00
committed by Steven Allen
parent b4f7fda731
commit 8ef9d774c9
7 changed files with 14 additions and 827 deletions

View File

@@ -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 {