Skip to content

Commit

Permalink
ds printer
Browse files Browse the repository at this point in the history
  • Loading branch information
mh0lt committed Jul 21, 2024
1 parent 116eca1 commit 77cfed7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mmap_span/mmap_span.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ func (ms *MMapSpan) flushMaps(onFlush func(size int64), lock bool) (errs []error

if flushedCallback != nil {
flushedCallback(ms.InfoHash, dirtyPieces)
fmt.Println("FDS", onFlush, dirtySize)

Check failure on line 88 in mmap_span/mmap_span.go

View workflow job for this annotation

GitHub Actions / bench (1.21)

fmt.Println arg onFlush is a func value, not called

Check failure on line 88 in mmap_span/mmap_span.go

View workflow job for this annotation

GitHub Actions / test (1.21, windows-latest)

fmt.Println arg onFlush is a func value, not called

Check failure on line 88 in mmap_span/mmap_span.go

View workflow job for this annotation

GitHub Actions / test-benchmarks (1.21)

fmt.Println arg onFlush is a func value, not called

Check failure on line 88 in mmap_span/mmap_span.go

View workflow job for this annotation

GitHub Actions / test (1.21, macos-latest)

fmt.Println arg onFlush is a func value, not called

Check failure on line 88 in mmap_span/mmap_span.go

View workflow job for this annotation

GitHub Actions / test-386 (1.21)

fmt.Println arg onFlush is a func value, not called

Check failure on line 88 in mmap_span/mmap_span.go

View workflow job for this annotation

GitHub Actions / test (1.21, ubuntu-latest)

fmt.Println arg onFlush is a func value, not called
if onFlush != nil {
fmt.Println("FDS", dirtySize)
onFlush(dirtySize)
}
}
Expand Down Expand Up @@ -180,7 +180,6 @@ func (ms *MMapSpan) WriteAt(index int, p []byte, off int64) (n int, err error) {
ms.mu.Lock()
ms.dirtyPieces.Add(uint32(index))
ms.dirtySize += int64(len(p))
fmt.Println("DS", index, int64(len(p)), ms.dirtySize)
ms.mu.Unlock()

return
Expand Down

0 comments on commit 77cfed7

Please sign in to comment.