Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion p2p/kademlia/dht.go
Original file line number Diff line number Diff line change
Expand Up @@ -1697,7 +1697,7 @@ func (s *DHT) IterateBatchStore(ctx context.Context, values [][]byte, typ int, i

func (s *DHT) batchStoreNetwork(ctx context.Context, values [][]byte, nodes map[string]*Node, storageMap map[string][]int, typ int) chan *MessageWithError {
responses := make(chan *MessageWithError, len(nodes))
maxStore := 48
maxStore := 16
if ln := len(nodes); ln < maxStore {
maxStore = ln
}
Expand Down
2 changes: 1 addition & 1 deletion p2p/kademlia/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ func (s *Network) Call(ctx context.Context, request *Message, isLong bool) (*Mes
// ---- retryable RPC helpers -------------------------------------------------

func (s *Network) rpcOnceWrapper(ctx context.Context, cw *connWrapper, remoteAddr string, data []byte, timeout time.Duration, msgType int) (*Message, error) {
writeDL := calcWriteDeadline(timeout, len(data), 2.0) // target ~2 MB/s
writeDL := calcWriteDeadline(timeout, len(data), 1.0) // target ~2 MB/s

retried := false
for {
Expand Down
2 changes: 1 addition & 1 deletion supernode/services/cascade/adaptors/p2p.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
)

const (
loadSymbolsBatchSize = 3000
loadSymbolsBatchSize = 2500
// Minimum first-pass coverage to store before returning from Register (percent)
storeSymbolsPercent = 18

Expand Down