Skip to content

Commit

Permalink
Fix go vet errors
Browse files Browse the repository at this point in the history
  • Loading branch information
syucream committed Nov 8, 2017
1 parent 97e88b6 commit 60f1f95
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions quniq.go
Expand Up @@ -26,11 +26,11 @@ const (
)

type MovableBuffer struct {
pool sync.Pool
pool *sync.Pool
buf []string
}

func NewMovableBuffer(p sync.Pool, b []string) *MovableBuffer {
func NewMovableBuffer(p *sync.Pool, b []string) *MovableBuffer {
return &MovableBuffer{
pool: p,
buf: b,
Expand Down Expand Up @@ -136,7 +136,7 @@ func main() {
}

// move buffer to other goroutine and process
mbuf := NewMovableBuffer(bufferPool, buf)
mbuf := NewMovableBuffer(&bufferPool, buf)
wg.Add(1)
go process(mbuf, wg, mux, &result, *enableCaseInsentive)

Expand Down

0 comments on commit 60f1f95

Please sign in to comment.