Skip to content

Commit

Permalink
better checksum calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
u222471 committed Nov 14, 2017
1 parent 41d9b98 commit 8296459
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion post-processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ func CalculateBasicHashes(rd io.Reader) HashInfo {
// creates a multiplexer Writer object that will duplicate all write
// operations when copying data from source into all different hashing algorithms
// at the same time
multiWriter := io.MultiWriter(md5, sha1, sha256, sha512)
multiWriter := io.MultiWriter(hMd5, hSha1, hSha256, hSha512)

// Using a buffered reader, this will write to the writer multiplexer
// so we only traverse through the file once, and can calculate all hashes
Expand Down

0 comments on commit 8296459

Please sign in to comment.