Skip to content
Snippets Groups Projects
Commit c4331cd2 authored by Éloïs's avatar Éloïs
Browse files

fix(indexer): get_next_wot_id must init correctly NEXT_WOT_ID static

parent 03606119
No related branches found
No related tags found
No related merge requests found
Pipeline #12536 passed
...@@ -80,12 +80,13 @@ fn get_next_wot_id() -> WotId { ...@@ -80,12 +80,13 @@ fn get_next_wot_id() -> WotId {
next_wot_id_.add_assign(1); next_wot_id_.add_assign(1);
next_wot_id next_wot_id
} else { } else {
NEXT_WOT_ID = Some(if let Some(main_wot) = MAIN_WOT.get() { let next_wot_id = if let Some(main_wot) = MAIN_WOT.get() {
main_wot.read().size() main_wot.read().size()
} else { } else {
0 0
}); };
0 NEXT_WOT_ID = Some(next_wot_id + 1);
next_wot_id
} }
}) })
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment