Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Commit

Permalink
Fix staticcheck
Browse files Browse the repository at this point in the history
Signed-off-by: Antonio Navarro Perez <[email protected]>
  • Loading branch information
ajnavarro committed Nov 22, 2022
1 parent 682995c commit faa63d4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
15 changes: 0 additions & 15 deletions client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,6 @@ func makeCID() cid.Cid {
return c
}

func makeProvider() (peer.ID, []multiaddr.Multiaddr) {
peerID, addrs, _ := makeProviderAndIdentity()
return peerID, addrs
}

func addrsToDRAddrs(addrs []multiaddr.Multiaddr) (drmas []delegatedrouting.Multiaddr) {
for _, a := range addrs {
drmas = append(drmas, delegatedrouting.Multiaddr{Multiaddr: a})
Expand Down Expand Up @@ -127,16 +122,6 @@ func makeProviderAndIdentity() (peer.ID, []multiaddr.Multiaddr, crypto.PrivKey)
return peerID, []multiaddr.Multiaddr{ma1, ma2}, priv
}

func bsProvsToAIs(provs []delegatedrouting.BitswapReadProviderResponse) (ais []peer.AddrInfo) {
for _, prov := range provs {
ais = append(ais, peer.AddrInfo{
ID: *prov.ID,
Addrs: drAddrsToAddrs(prov.Addrs),
})
}
return
}

func TestClient_FindProviders(t *testing.T) {
bsReadProvResp := makeBSReadProviderResp()
bitswapProvs := []delegatedrouting.Provider{&bsReadProvResp}
Expand Down
2 changes: 0 additions & 2 deletions internal/goroutines_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ func singleItemBatches(items []int) (batches [][]int) {
}

func TestDoBatch(t *testing.T) {
type batchHandler func(context.Context, sync.Mutex, [][]int, []int) error

cases := []struct {
name string
items []int
Expand Down

0 comments on commit faa63d4

Please sign in to comment.