Skip to content

Commit

Permalink
swarm/storage: remove Debug calls
Browse files Browse the repository at this point in the history
  • Loading branch information
nonsense committed Jan 23, 2019
1 parent b577b2f commit c1cd442
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions swarm/storage/pyramid.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,6 @@ func (pc *PyramidChunker) decrementWorkerCount() {
}

func (pc *PyramidChunker) Split(ctx context.Context) (k Address, wait func(context.Context) error, err error) {
log.Debug("pyramid.chunker: Split()")

pc.wg.Add(1)
pc.prepareChunks(ctx, false)

Expand Down Expand Up @@ -235,7 +233,6 @@ func (pc *PyramidChunker) Split(ctx context.Context) (k Address, wait func(conte
}

func (pc *PyramidChunker) Append(ctx context.Context) (k Address, wait func(context.Context) error, err error) {
log.Debug("pyramid.chunker: Append()")
// Load the right most unfinished tree chunks in every level
pc.loadTree(ctx)

Expand Down Expand Up @@ -283,8 +280,6 @@ func (pc *PyramidChunker) processor(ctx context.Context, id int64) {
}

func (pc *PyramidChunker) processChunk(ctx context.Context, id int64, job *chunkJob) {
log.Debug("pyramid.chunker: processChunk()", "id", id)

ref, err := pc.putter.Put(ctx, job.chunk)
if err != nil {
select {
Expand All @@ -301,7 +296,6 @@ func (pc *PyramidChunker) processChunk(ctx context.Context, id int64, job *chunk
}

func (pc *PyramidChunker) loadTree(ctx context.Context) error {
log.Debug("pyramid.chunker: loadTree()")
// Get the root chunk to get the total size
chunkData, err := pc.getter.Get(ctx, Reference(pc.key))
if err != nil {
Expand Down Expand Up @@ -386,7 +380,6 @@ func (pc *PyramidChunker) loadTree(ctx context.Context) error {
}

func (pc *PyramidChunker) prepareChunks(ctx context.Context, isAppend bool) {
log.Debug("pyramid.chunker: prepareChunks", "isAppend", isAppend)
defer pc.wg.Done()

chunkWG := &sync.WaitGroup{}
Expand Down

0 comments on commit c1cd442

Please sign in to comment.