Commit 47201a6
fix: support aiokafka 0.13.0 which removed api_version parameter (#674)
aiokafka 0.13.0 removed the `api_version` parameter from both
`AIOKafkaConsumer` and `AIOKafkaProducer`. Since faust requires
`aiokafka>=0.10.0`, it needs to handle both old and new versions.
This adds a version check and conditionally includes `api_version`
only when running with aiokafka < 0.13.0.
Fixes #672
Co-authored-by: nightcityblade <[email protected]>1 parent ff75c0b commit 47201a6
2 files changed
Lines changed: 27 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
30 | 33 | | |
31 | 34 | | |
32 | 35 | | |
| |||
529 | 532 | | |
530 | 533 | | |
531 | 534 | | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
532 | 538 | | |
533 | | - | |
| 539 | + | |
534 | 540 | | |
535 | 541 | | |
536 | 542 | | |
| |||
1111 | 1117 | | |
1112 | 1118 | | |
1113 | 1119 | | |
1114 | | - | |
| 1120 | + | |
1115 | 1121 | | |
1116 | 1122 | | |
1117 | 1123 | | |
| |||
1122 | 1128 | | |
1123 | 1129 | | |
1124 | 1130 | | |
1125 | | - | |
1126 | 1131 | | |
1127 | 1132 | | |
1128 | 1133 | | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
1129 | 1137 | | |
1130 | 1138 | | |
1131 | 1139 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
813 | 814 | | |
814 | 815 | | |
815 | 816 | | |
816 | | - | |
817 | | - | |
| 817 | + | |
818 | 818 | | |
819 | 819 | | |
820 | 820 | | |
| |||
841 | 841 | | |
842 | 842 | | |
843 | 843 | | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
844 | 847 | | |
845 | 848 | | |
846 | 849 | | |
| |||
1382 | 1385 | | |
1383 | 1386 | | |
1384 | 1387 | | |
1385 | | - | |
| 1388 | + | |
1386 | 1389 | | |
1387 | 1390 | | |
1388 | 1391 | | |
| |||
1393 | 1396 | | |
1394 | 1397 | | |
1395 | 1398 | | |
1396 | | - | |
1397 | 1399 | | |
1398 | 1400 | | |
1399 | 1401 | | |
1400 | 1402 | | |
1401 | 1403 | | |
| 1404 | + | |
| 1405 | + | |
| 1406 | + | |
1402 | 1407 | | |
1403 | 1408 | | |
1404 | 1409 | | |
| |||
1475 | 1480 | | |
1476 | 1481 | | |
1477 | 1482 | | |
1478 | | - | |
| 1483 | + | |
| 1484 | + | |
| 1485 | + | |
| 1486 | + | |
| 1487 | + | |
| 1488 | + | |
| 1489 | + | |
1479 | 1490 | | |
1480 | 1491 | | |
1481 | 1492 | | |
| |||
0 commit comments