|
|
@ -60,11 +60,7 @@ func main() { |
|
|
|
// get chunks
|
|
|
|
// get chunks
|
|
|
|
chunks := make([][]byte, k+m) |
|
|
|
chunks := make([][]byte, k+m) |
|
|
|
for i := 0; i < k+m; i++ { |
|
|
|
for i := 0; i < k+m; i++ { |
|
|
|
var err error |
|
|
|
chunks[i], _ = ioutil.ReadFile(inputFilePath + "." + strconv.Itoa(i)) |
|
|
|
chunks[i], err = ioutil.ReadFile(inputFilePath + "." + strconv.Itoa(i)) |
|
|
|
|
|
|
|
if err != nil { |
|
|
|
|
|
|
|
continue |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// get length
|
|
|
|
// get length
|
|
|
|