pub fn write_wal_frame( writer: &mut Vec<u8>, frame: &WalFrame, checksum_1: u32, checksum_2: u32, ) -> Result<(), Box<dyn Error>>