Commit 471fe8b
authored
Add a convenience method for creating in-process client/server (#1738)
Motivation:
To use the in-process transport users must create a server and then a
client depending on that server. It rarely makes sense to create one
without the other and I have written more or less the same extension in
three places to do this for me and return a pair. This should just be
made into API.
Modifications:
- Add a `InProcessTransport.makePair()` convenience method
- Replace use of old helpers
Result:
It's easier to create in-process transport.1 parent 7986535 commit 471fe8b
File tree
3 files changed
+51
-24
lines changed- Sources/GRPCInProcessTransport
- Tests/GRPCCoreTests
3 files changed
+51
-24
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | 23 | | |
34 | 24 | | |
35 | 25 | | |
36 | 26 | | |
37 | 27 | | |
38 | | - | |
| 28 | + | |
39 | 29 | | |
40 | 30 | | |
41 | 31 | | |
| |||
325 | 315 | | |
326 | 316 | | |
327 | 317 | | |
328 | | - | |
| 318 | + | |
329 | 319 | | |
330 | 320 | | |
331 | 321 | | |
| |||
374 | 364 | | |
375 | 365 | | |
376 | 366 | | |
377 | | - | |
| 367 | + | |
378 | 368 | | |
379 | 369 | | |
380 | 370 | | |
| |||
390 | 380 | | |
391 | 381 | | |
392 | 382 | | |
393 | | - | |
| 383 | + | |
394 | 384 | | |
395 | 385 | | |
396 | 386 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | 23 | | |
31 | 24 | | |
32 | 25 | | |
33 | 26 | | |
34 | 27 | | |
35 | | - | |
| 28 | + | |
36 | 29 | | |
37 | 30 | | |
38 | 31 | | |
| |||
298 | 291 | | |
299 | 292 | | |
300 | 293 | | |
301 | | - | |
| 294 | + | |
302 | 295 | | |
303 | 296 | | |
304 | 297 | | |
| |||
353 | 346 | | |
354 | 347 | | |
355 | 348 | | |
356 | | - | |
| 349 | + | |
| 350 | + | |
357 | 351 | | |
358 | 352 | | |
359 | 353 | | |
| |||
0 commit comments