Commit 1730f0f
committed
Refactor message parsing functions and update tests
- Remove parse_msg_args and parse_hmsg_args in favor of async parse_msg and
parse_hmsg - Rename and update protocol parsing functions for clarity - Update
tests to use new async parsing functions1 parent b141c5d commit 1730f0f
File tree
2 files changed
+81
-137
lines changed- nats-client
- src/nats/client/protocol
- tests
2 files changed
+81
-137
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
151 | | - | |
152 | 150 | | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | 151 | | |
225 | 152 | | |
226 | 153 | | |
| |||
320 | 247 | | |
321 | 248 | | |
322 | 249 | | |
323 | | - | |
| 250 | + | |
324 | 251 | | |
325 | 252 | | |
326 | 253 | | |
327 | | - | |
| 254 | + | |
328 | 255 | | |
329 | 256 | | |
330 | 257 | | |
| |||
367 | 294 | | |
368 | 295 | | |
369 | 296 | | |
370 | | - | |
| 297 | + | |
371 | 298 | | |
372 | 299 | | |
373 | 300 | | |
374 | | - | |
| 301 | + | |
375 | 302 | | |
376 | 303 | | |
377 | 304 | | |
| |||
432 | 359 | | |
433 | 360 | | |
434 | 361 | | |
435 | | - | |
| 362 | + | |
436 | 363 | | |
437 | 364 | | |
438 | 365 | | |
| |||
460 | 387 | | |
461 | 388 | | |
462 | 389 | | |
463 | | - | |
| 390 | + | |
464 | 391 | | |
465 | 392 | | |
466 | 393 | | |
| |||
487 | 414 | | |
488 | 415 | | |
489 | 416 | | |
490 | | - | |
491 | | - | |
| 417 | + | |
| 418 | + | |
492 | 419 | | |
493 | 420 | | |
494 | | - | |
| 421 | + | |
495 | 422 | | |
496 | 423 | | |
497 | 424 | | |
498 | 425 | | |
499 | | - | |
500 | | - | |
| 426 | + | |
| 427 | + | |
501 | 428 | | |
502 | 429 | | |
503 | | - | |
| 430 | + | |
504 | 431 | | |
505 | 432 | | |
506 | 433 | | |
| |||
509 | 436 | | |
510 | 437 | | |
511 | 438 | | |
512 | | - | |
| 439 | + | |
513 | 440 | | |
514 | 441 | | |
515 | 442 | | |
| |||
545 | 472 | | |
546 | 473 | | |
547 | 474 | | |
548 | | - | |
| 475 | + | |
549 | 476 | | |
550 | | - | |
| 477 | + | |
551 | 478 | | |
552 | | - | |
| 479 | + | |
553 | 480 | | |
554 | | - | |
| 481 | + | |
555 | 482 | | |
556 | | - | |
| 483 | + | |
557 | 484 | | |
558 | | - | |
| 485 | + | |
559 | 486 | | |
560 | 487 | | |
561 | 488 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
19 | | - | |
20 | | - | |
| 20 | + | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
75 | | - | |
76 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
77 | 79 | | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
83 | 89 | | |
84 | 90 | | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
92 | 100 | | |
93 | 101 | | |
94 | | - | |
95 | | - | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
96 | 105 | | |
97 | 106 | | |
| 107 | + | |
98 | 108 | | |
99 | | - | |
| 109 | + | |
100 | 110 | | |
101 | | - | |
102 | | - | |
103 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
104 | 115 | | |
105 | 116 | | |
106 | | - | |
107 | | - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
108 | 120 | | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
117 | 135 | | |
118 | 136 | | |
119 | | - | |
120 | | - | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
121 | 140 | | |
122 | 141 | | |
123 | | - | |
124 | | - | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
125 | 145 | | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
130 | 150 | | |
131 | 151 | | |
| 152 | + | |
132 | 153 | | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
| 154 | + | |
138 | 155 | | |
139 | 156 | | |
140 | 157 | | |
| |||
0 commit comments