Provide JoinFilesWithPrefix case with Gochannel

This commit is contained in:
Harshavardhana
2014-12-05 09:49:07 -08:00
parent 1b283441a4
commit 9a5003dd25
5 changed files with 104 additions and 18 deletions

View File

@@ -48,7 +48,7 @@ func encode(c *cli.Context) {
}
} else {
chunkCount := 0
splitChannel := make(chan split.ByteMessage)
splitChannel := make(chan split.SplitMessage)
inputReader := bytes.NewReader(input)
go split.SplitStream(inputReader, config.blockSize, splitChannel)
for chunk := range splitChannel {