Skip to content

Commit

Permalink
fix local sha1 calculation on reset offset
Browse files Browse the repository at this point in the history
  • Loading branch information
cenkalti committed Mar 12, 2018
1 parent 5f0ab6b commit d923f71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion write.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func (c *Client) sendFile(path string, rs io.ReadSeeker, size int64) (*Checksums
c.log.Errorf("cannot get offset for path [%s]: %s", path, err.Error())
return err
}
_, err = rs.Seek(offset, io.SeekStart)
_, err = sf.Seek(offset, io.SeekStart)
if err != nil {
c.log.Errorf("cannot seek file: %s", err.Error())
return err
Expand Down

0 comments on commit d923f71

Please sign in to comment.