diff --git a/go.mod b/go.mod index 7618791..01724de 100644 --- a/go.mod +++ b/go.mod @@ -3,6 +3,6 @@ module github.com/nxshock/gwp go 1.16 require ( - github.com/nxshock/go-eta v0.1.0 + github.com/nxshock/go-eta v0.1.1 github.com/stretchr/testify v1.8.0 ) diff --git a/go.sum b/go.sum index d88a774..c701620 100644 --- a/go.sum +++ b/go.sum @@ -3,6 +3,8 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/nxshock/go-eta v0.1.0 h1:rcy8rNPaVeL3f3c5rJRLvho0FErUJThD0+vihxA7t9c= github.com/nxshock/go-eta v0.1.0/go.mod h1:hZ59FHIJSpPeZk38pd/3zUkI4H31hAQ2oFw+NgdU+SA= +github.com/nxshock/go-eta v0.1.1 h1:N4wi3wjrXJGiheYF4zBIjOwugM+++NWsB1fpeRZaHS4= +github.com/nxshock/go-eta v0.1.1/go.mod h1:hZ59FHIJSpPeZk38pd/3zUkI4H31hAQ2oFw+NgdU+SA= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= diff --git a/gwp.go b/gwp.go index fcd529a..4119cce 100644 --- a/gwp.go +++ b/gwp.go @@ -42,7 +42,7 @@ func New(threadCount int) *WorkerPool { jobChan: make(chan func() error), resultChan: make(chan error), stopChan: make(chan struct{}), - eta: eta.New(time.Minute, 0)} + eta: eta.New(0)} workerPool.wg.Add(threadCount)