~netlandish/gobwebs

022aca272dd4cdaea9ce24286500ddb81272e886 — Peter Sanchez 2 years ago ec158ad
Fixing context assignment for task queues
1 files changed, 1 insertions(+), 1 deletions(-)

M server/server.go
M server/server.go => server/server.go +1 -1
@@ 322,9 322,9 @@ func (s *Server) WithMiddleware(middlewares ...echo.MiddlewareFunc) *Server {

// WithQueues add dowork task queues for this server to manage
func (s *Server) WithQueues(queues ...*work.Queue) *Server {
	ctx := context.Background()
	s.queues = append(s.queues, queues...)
	for _, queue := range queues {
		ctx := context.Background()
		queue.Start(ctx)
	}
	return s