Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
cristaloleg committed Nov 18, 2024
1 parent 147da81 commit ecded25
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions share/availability/light/availability.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,6 @@ func (la *ShareAvailability) SharesAvailable(ctx context.Context, header *header
}
}

log.Error(len(failedSamples))

samples.Available = fetchedSamples
samples.Remaining = failedSamples

Expand Down
6 changes: 3 additions & 3 deletions share/availability/light/availability_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,11 +247,11 @@ func newOnceGetter() onceGetter {
}
}

func (g onceGetter) addSamples(remaining []Sample) {
func (g onceGetter) addSamples(samples []Sample) {
g.Lock()
defer g.Unlock()

for _, r := range remaining {
for _, r := range samples {
s := Sample{Row: r.Row, Col: r.Col}
g.sampled[s]++
}
Expand Down Expand Up @@ -299,7 +299,7 @@ func (g onceGetter) GetSamples(_ context.Context, hdr *header.ExtendedHeader,
return smpls, nil
}

func (g onceGetter) GetShare(_ context.Context, _ *header.ExtendedHeader, row, col int) (libshare.Share, error) {
func (g onceGetter) GetShare(_ context.Context, _ *header.ExtendedHeader, _, _ int) (libshare.Share, error) {
panic("not implemented")
}

Expand Down

0 comments on commit ecded25

Please sign in to comment.