Commit c7f5c98
protocol_features: construct ProtocolFeatures with keyword arguments
Make ProtocolFeatures.__init__ keyword-only and build it by keyword in
parse_from_supported. Independently developed protocol extensions
(SCYLLA_USE_METADATA_ID, TABLETS_ROUTING_V2) each add fields to this
class; keyword construction lets them do so without conflicting over
positional-argument order. All existing callers already used keywords.1 parent 6e12577 commit c7f5c98
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
| |||
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
34 | | - | |
| 36 | + | |
| 37 | + | |
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
| |||
0 commit comments