╭ changed ────────────╮ │src/event/Comment.zig│ ╰─────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │63 var record_to_write = record_maybe orelse try evt.removedRecord(Record, DB, hash_kind, haxy_moment.readOnly(), existing_record_maybe);│ │64 │ │65 const thread_id = try evt.parseEventId(&record_to_write.event.thread_id); │ │66 - _ = try evt.parseEventId(&record_to_write.event.parent_id); │ │66 + const parent_id = try evt.parseEventId(&record_to_write.event.parent_id); │ │67 │ │68 if (existing_record_maybe) |existing_record| { │ │69 // updates preserve the original creation order and author │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │90 │ │91 // removed comments stay in the thread so their replies remain connected │ │92 const thread_order_key = evt.orderKey(record_to_write.created_order, event_id); │ │93 - const thread_comments_cursor = try thread_id_to_comment_id_set.putCursor(hash.hashInt(hash_kind, &record_to_write.event.thread_id));│ │93 + const thread_comments_cursor = try thread_id_to_comment_id_set.putCursor(hash.hashInt(hash_kind, &thread_id)); │ │94 const thread_comments = try DB.SortedSet(.read_write).init(thread_comments_cursor); │ │95 try thread_comments.put(&thread_order_key); │ │96 │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ 97 - const replies_cursor = try parent_id_to_comment_id_set.putCursor(hash.hashInt(hash_kind, &record_to_write.event.parent_id));│ │ 97 + const replies_cursor = try parent_id_to_comment_id_set.putCursor(hash.hashInt(hash_kind, &parent_id)); │ │ 98 const replies = try DB.SortedSet(.read_write).init(replies_cursor); │ │ 99 try replies.put(&thread_order_key); │ │100 } │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯