1
0
Fork 0
mirror of https://github.com/postmannen/ctrl.git synced 2024-12-14 12:37:31 +00:00

srcSubHandler checking status value

This commit is contained in:
postmannen 2022-06-14 10:34:18 +02:00
parent be181ec572
commit 7c4fd58b04

View file

@ -248,8 +248,14 @@ func copySrcSubHandler(cia copyInitialData) func(process, Message, string) ([]by
log.Fatalf("error: copySrcSubHandler: cbor unmarshal of csa failed: %v\n", err)
}
fmt.Printf("\n-----------------RECEIVED COPY READY MESSAGE IN copySrcSubHandler: %v------------------\n\n", csa.CopyStatus)
switch csa.CopyStatus {
case copyReady:
log.Printf(" * RECEIVED * copyStatus=copyReady copySrcSubHandler: %v\n\n", csa.CopyStatus)
default:
log.Fatalf("error: copySrcSubHandler: not valid copyStatus, exiting: %v\n", csa.CopyStatus)
}
// TODO: Clean up eventual tmp folders here!
allDoneCh <- struct{}{}
}()