Commit bed8453
committed
bitswap/client: remove providerQueryManager and move logic in session
Closes: #172
See #172 (comment) too.
providerQueryManager took care of:
- Deduping multiple sessions doing find providers for the same CID.
- limiting global find providers.
None of which we care:
- This is rare, if this happens it's fine to run the same query twice.
If we care then we should make a deduping content router so we can inject it anywhere a content router is needed.
- It's fine to allow one concurrent find peer per session. No need to limit this at 6 globally after that, it's a great way to stall nodes doing many queries.1 parent 301d5b5 commit bed8453
File tree
5 files changed
+106
-865
lines changed- bitswap/client
- internal
- providerquerymanager
- session
5 files changed
+106
-865
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
| |||
99 | 98 | | |
100 | 99 | | |
101 | 100 | | |
102 | | - | |
| 101 | + | |
103 | 102 | | |
104 | 103 | | |
105 | 104 | | |
| |||
155 | 154 | | |
156 | 155 | | |
157 | 156 | | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | 157 | | |
164 | 158 | | |
165 | 159 | | |
| |||
179 | 173 | | |
180 | 174 | | |
181 | 175 | | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | 176 | | |
187 | 177 | | |
188 | 178 | | |
| |||
244 | 234 | | |
245 | 235 | | |
246 | 236 | | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
| 237 | + | |
254 | 238 | | |
255 | 239 | | |
256 | 240 | | |
| |||
0 commit comments