Commit 7a88aff
authored
fix(model)!: incoming heartbeat has null data (twilight-rs#2420)
Heartbeats may contain null data.
Discord documents this event as containing data, but that's only when sent to the gateway.
```
2025-02-14T15:50:16.796316Z DEBUG twilight_gateway::shard: received heartbeat
2025-02-14T15:50:16.796359Z WARN gateway_request_members: error receiving event source=ReceiveMessageError { kind: Deserializing { event: "{\"t\":null,\"s\":null,\"op\":1,\"d\":null}" }, source: Some(Error("invalid type: null, expected u64", line: 1, column: 34)) }
```1 parent dcadfb5 commit 7a88aff
File tree
3 files changed
+15
-20
lines changed- twilight-cache-inmemory/src
- twilight-model/src/gateway/event
3 files changed
+15
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1027 | 1027 | | |
1028 | 1028 | | |
1029 | 1029 | | |
1030 | | - | |
| 1030 | + | |
1031 | 1031 | | |
1032 | 1032 | | |
1033 | 1033 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
301 | | - | |
302 | | - | |
303 | 301 | | |
304 | 302 | | |
305 | | - | |
| 303 | + | |
306 | 304 | | |
307 | 305 | | |
308 | 306 | | |
| |||
365 | 363 | | |
366 | 364 | | |
367 | 365 | | |
368 | | - | |
| 366 | + | |
369 | 367 | | |
370 | 368 | | |
371 | 369 | | |
| |||
391 | 389 | | |
392 | 390 | | |
393 | 391 | | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | 392 | | |
398 | 393 | | |
399 | 394 | | |
400 | 395 | | |
401 | 396 | | |
402 | 397 | | |
403 | | - | |
| 398 | + | |
404 | 399 | | |
405 | 400 | | |
406 | 401 | | |
| |||
621 | 616 | | |
622 | 617 | | |
623 | 618 | | |
624 | | - | |
| 619 | + | |
625 | 620 | | |
626 | 621 | | |
627 | 622 | | |
628 | 623 | | |
629 | 624 | | |
630 | 625 | | |
631 | | - | |
| 626 | + | |
632 | 627 | | |
633 | 628 | | |
634 | 629 | | |
| |||
781 | 776 | | |
782 | 777 | | |
783 | 778 | | |
784 | | - | |
| 779 | + | |
785 | 780 | | |
786 | 781 | | |
787 | 782 | | |
| |||
794 | 789 | | |
795 | 790 | | |
796 | 791 | | |
797 | | - | |
| 792 | + | |
798 | 793 | | |
799 | 794 | | |
800 | 795 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | | - | |
| 62 | + | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
253 | | - | |
| 253 | + | |
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
| |||
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
281 | | - | |
| 281 | + | |
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
| |||
422 | 422 | | |
423 | 423 | | |
424 | 424 | | |
425 | | - | |
| 425 | + | |
426 | 426 | | |
427 | 427 | | |
428 | 428 | | |
| |||
0 commit comments