Skip to content

Commit

Permalink
chore: add copy, fix chunk size
Browse files Browse the repository at this point in the history
  • Loading branch information
acud authored and mrekucci committed Jan 17, 2022
1 parent c574f4e commit 48be37a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
4 changes: 4 additions & 0 deletions pkg/sharky/shard.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2021 The Swarm Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package sharky

import (
Expand Down
8 changes: 7 additions & 1 deletion pkg/sharky/shards.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2021 The Swarm Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// # lockless sharding

// * shard choice responding to backpressure by running operation
Expand All @@ -16,10 +20,12 @@ import (
"path"
"strings"
"sync"

"github.com/ethersphere/bee/pkg/swarm"
)

var (
DataSize int64 = 4096
DataSize int64 = swarm.ChunkWithSpanSize

ErrTooLong = errors.New("data too long")
ErrCapacityReached = errors.New("capacity reached")
Expand Down
4 changes: 4 additions & 0 deletions pkg/sharky/sharky_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2021 The Swarm Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package sharky_test

import (
Expand Down

0 comments on commit 48be37a

Please sign in to comment.