Commit 3f6bbecc authored by Brian Tiger Chow's avatar Brian Tiger Chow Committed by Jeromy

constify to make it clear what _can_ and _can't_ change over time

License: MIT
Signed-off-by: default avatarBrian Tiger Chow <brian@perfmode.com>
parent 9cad93a8
......@@ -158,14 +158,14 @@ func (bs *bitswap) run(ctx context.Context) {
var sendlist <-chan peer.Peer
// Every so often, we should resend out our current want list
rebroadcastTime := time.Second * 5
const rebroadcastTime = time.Second * 5
// Time to wait before sending out wantlists to better batch up requests
bufferTime := time.Millisecond * 3
const bufferTime = time.Millisecond * 3
peersPerSend := 6
timeout := time.After(rebroadcastTime)
threshold := 10
const threshold = 10
unsent := 0
for {
select {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment