Commit 13517a6
committed
mtc_api: Make
If the number of landmarks is greater than the max, then drain the
oldest landmarks from the deque. This makes the code more robust in case
we ever decode a `LandmarkSequence` with a different `max_landmarks`
than when it was encoded.LandmarkSequence::add more robust1 parent 38b79c9 commit 13517a6
1 file changed
+3
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
57 | 56 | | |
58 | 57 | | |
59 | 58 | | |
| |||
0 commit comments