Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pkg/adpub/ad_stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ type AdStats struct {
ctxIDRm map[string]bool
samples []*AdSample

mhCountDist []interface{}
chunkCountDist []interface{}
mhCountDist []any
chunkCountDist []any
}

type AdSample struct {
Expand Down
4 changes: 2 additions & 2 deletions pkg/adpub/client_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ func (s *ClientStore) getAdvertisement(ctx context.Context, id cid.Cid) (*Advert
}

func (s *ClientStore) list(ctx context.Context, nextCid cid.Cid, n int, w io.Writer) error {
for i := 0; i < n; i++ {
for range n {
ad, err := s.loadAd(ctx, nextCid)
if err != nil {
return err
Expand All @@ -185,7 +185,7 @@ func (s *ClientStore) list(ctx context.Context, nextCid cid.Cid, n int, w io.Wri
}

func (s *ClientStore) crawl(ctx context.Context, nextCid cid.Cid, n int, ads chan<- *Advertisement) (cid.Cid, error) {
for i := 0; i < n; i++ {
for range n {
ad, err := s.loadAd(ctx, nextCid)
if err != nil {
return cid.Undef, err
Expand Down
2 changes: 1 addition & 1 deletion pkg/spaddr/spinfo/spinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type ExpTipSet struct {
Cids []cid.Cid
//Blocks []*BlockHeader
//Height abi.ChainEpoch
Blocks []interface{}
Blocks []any
Height int64
}

Expand Down
4 changes: 1 addition & 3 deletions pkg/spaddr/spinfo/spinfo_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package spinfo_test

import (
"context"
"os"
"testing"

Expand All @@ -20,8 +19,7 @@ func TestSPAddrInfo(t *testing.T) {
t.Skip("Skipping lotus test. Set STI_LOTUS_TEST=yes to enable.")
}

ctx, cancel := context.WithCancel(context.Background())
defer cancel()
ctx := t.Context()

addrInfo, err := spinfo.SPAddrInfo(ctx, gateway, testSPID)
require.NoError(t, err)
Expand Down