Skip to content

Commit

Permalink
Go report card fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
eadanfahey committed Jun 7, 2020
1 parent 27f425d commit ba8cf65
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
@@ -1,5 +1,7 @@
# Jot

[![Build Status](https://travis-ci.org/jotfs/jot.svg?branch=master)](https://travis-ci.org/jotfs/jot) [![Go Report Card](https://goreportcard.com/badge/github.com/jotfs/jot)](https://goreportcard.com/report/github.com/jotfs/jot)

The Go client library for [JotFS](https://github.com/jotfs/jotfs)

## License
Expand Down
3 changes: 3 additions & 0 deletions client.go
Expand Up @@ -126,6 +126,9 @@ func (c *Client) UploadWithContext(ctx context.Context, r io.Reader, dst string,
defer os.RemoveAll(dir)

packer, err := newPacker(dir, packFiles)
if err != nil {
return FileID{}, fmt.Errorf("creating new packer: %w", err)
}

// Get the chunker options from the server if we haven't done so already
if c.opts == nil {
Expand Down
1 change: 1 addition & 0 deletions internal/admin/admin.go
Expand Up @@ -67,6 +67,7 @@ func (c *Client) VacuumStatus(ctx context.Context, id string) (Vacuum, error) {
return Vacuum{vacuum.Status, startedAt, completedAt}, nil
}

// Stats stores the summary statistics of the server.
type Stats struct {
NumFiles uint64
NumFileVersions uint64
Expand Down
2 changes: 1 addition & 1 deletion packfile.go
Expand Up @@ -17,7 +17,7 @@ type packfileBuilder struct {

// newPackfileBuilder creates a new packfileBuilder
func newPackfileBuilder(w io.Writer) (*packfileBuilder, error) {
// Send everything writen to the packfile through the hash function
// Send everything written to the packfile through the hash function
hash := newHash()
w = io.MultiWriter(w, hash)
wr := &countingWriter{w, 0}
Expand Down

0 comments on commit ba8cf65

Please sign in to comment.