pub(super) fn pop_action(&mut self) -> Option<SyncAction> {
        if let Some(peeked) = self.peeked.take() {
            QUEUE_METRICS.action_queue_size.dec_by(1);
            return Some(peeked);
        }
        let action = self.receiver.try_recv().ok()?;
        QUEUE_METRICS.action_queue_size.dec_by(1);
        Some(action)
    }
Removes the first action from the queue.
core/node/node_sync/src/sync_action.rs