抓紧实现flush_message