Skip to content

Commit

Permalink
fix: don't freeze peers
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed Jan 24, 2023
1 parent 9e59c00 commit 8814195
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bitswap/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@ func NewProvider(
network: network.NewFromIpfsHost(host, routing),
blockManager: blockManager,
retriever: retriever,
requestQueue: peertaskqueue.New(peertaskqueue.TaskMerger(&overwriteTaskMerger{})),
responseQueue: peertaskqueue.New(peertaskqueue.TaskMerger(&overwriteTaskMerger{})),
retrievalQueue: peertaskqueue.New(peertaskqueue.TaskMerger(&overwriteTaskMerger{})),
requestQueue: peertaskqueue.New(peertaskqueue.TaskMerger(&overwriteTaskMerger{}), peertaskqueue.IgnoreFreezing(true)),
responseQueue: peertaskqueue.New(peertaskqueue.TaskMerger(&overwriteTaskMerger{}), peertaskqueue.IgnoreFreezing(true)),
retrievalQueue: peertaskqueue.New(peertaskqueue.TaskMerger(&overwriteTaskMerger{}), peertaskqueue.IgnoreFreezing(true)),
}

provider.network.Start(provider)
Expand Down

0 comments on commit 8814195

Please sign in to comment.