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:
parent
be181ec572
commit
7c4fd58b04
1 changed files with 7 additions and 1 deletions
|
@ -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{}{}
|
||||
}()
|
||||
|
||||
|
|
Loading…
Reference in a new issue