Commit 2f34d69
committed
gossipsub: do early return in for an empty input
Adds a fast path in `remove_data_messages` to avoid unnecessary
work when the caller provides an empty `message_ids` slice.
Signed-off-by: Onur Özkan <work@onurozkan.dev>1 parent ac1404e commit 2f34d69
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
84 | 88 | | |
85 | 89 | | |
86 | 90 | | |
| |||
0 commit comments