@xiangli-cmu Can you rename this function to `flush()` since it's implied that it's for the peer?