pub fn serve_push<R: BufRead, W: Write>(
local: &dyn Local,
header: &SyncHeader,
input: R,
output: W,
) -> Result<Imported>Expand description
The receiving end of push, run by sb sync-import: answers the
pusher’s hello with this store’s, imports the rest of input, then
reports the highest seq it applied without a gap. header is the
stream’s, which the caller reads with read_checked_header before it
reaches the store, so a refused stream never does.