def publish.result
import mylsm-lsm-store@0.6.0.1/src/transfer/RestoreIo.bend as RestoreIoimport Base
352def publish.result(
353 destination: String,
354 temporary: String,
355 expected: Nat,
356 populated: Result<&1, &1, Error, Unit>
357) -> IO(Result<&1, &1, Error, Unit>):
358 match populated:
359 case Fail{error}: IO.pure(Result<&1, &1, Error, Unit>, Fail{error})
360 case Done{Unit{}}: publish(destination, temporary, expected)