aboutsummaryrefslogtreecommitdiffstats
path: root/swarm/network/stream
diff options
context:
space:
mode:
authorBalint Gabor <balint.g@gmail.com>2018-09-18 16:17:13 +0800
committerGitHub <noreply@github.com>2018-09-18 16:17:13 +0800
commitbd58098f2d88aabe5c555f5aa3d54d4786b7895b (patch)
tree216afd38bb440ee4a88c1db3f22f8fe745a354c8 /swarm/network/stream
parent5d1d1a808d92440a7c0efad77fa5527e4255e596 (diff)
downloaddexon-bd58098f2d88aabe5c555f5aa3d54d4786b7895b.tar.gz
dexon-bd58098f2d88aabe5c555f5aa3d54d4786b7895b.tar.zst
dexon-bd58098f2d88aabe5c555f5aa3d54d4786b7895b.zip
swarm: Chunk refactor improvements (#17683)
* swarm/network: Protocol bump (for chunk refactor) * swarm/network: Increase discovery and stream protocol version too * swarm/network: Increase priority queue cap
Diffstat (limited to 'swarm/network/stream')
-rw-r--r--swarm/network/stream/stream.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/swarm/network/stream/stream.go b/swarm/network/stream/stream.go
index 1f1f34b7b..319fc62c9 100644
--- a/swarm/network/stream/stream.go
+++ b/swarm/network/stream/stream.go
@@ -41,8 +41,8 @@ const (
Mid
High
Top
- PriorityQueue = 4 // number of priority queues - Low, Mid, High, Top
- PriorityQueueCap = 128 // queue capacity
+ PriorityQueue = 4 // number of priority queues - Low, Mid, High, Top
+ PriorityQueueCap = 4096 // queue capacity
HashSize = 32
)
@@ -639,7 +639,7 @@ func (c *clientParams) clientCreated() {
// Spec is the spec of the streamer protocol
var Spec = &protocols.Spec{
Name: "stream",
- Version: 5,
+ Version: 6,
MaxMsgSize: 10 * 1024 * 1024,
Messages: []interface{}{
UnsubscribeMsg{},