From bc81c15713ea868acffe8f4f48362783d3be4eb0 Mon Sep 17 00:00:00 2001 From: Peter Sanchez Date: Wed, 18 Dec 2024 12:44:33 -0600 Subject: [PATCH] dowork bump and adding queue worker pool size for email queue helper --- email/email.go | 4 ++-- go.mod | 2 +- go.sum | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/email/email.go b/email/email.go index 1358639..9f5cc2d 100644 --- a/email/email.go +++ b/email/email.go @@ -78,8 +78,8 @@ func NewServiceQueue(logger echo.Logger, service carrier.Service, } // NewQueue Creates a new email processing queue. -func NewQueue() *work.Queue { - return work.NewQueue("email") +func NewQueue(qSize int) *work.Queue { + return work.NewQueue("email", qSize) } // ForContext returns the email worker for this context. diff --git a/go.mod b/go.mod index 25ea5dd..99d5206 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module netlandish.com/x/gobwebs go 1.20 require ( - git.sr.ht/~sircmpwn/dowork v0.0.0-20221010085743-46c4299d76a1 + git.sr.ht/~sircmpwn/dowork v0.0.0-20241216125407-2b00aa42322c github.com/Masterminds/squirrel v1.5.4 github.com/alexedwards/argon2id v1.0.0 github.com/alexedwards/scs/postgresstore v0.0.0-20240316134038-7e11d57e8885 diff --git a/go.sum b/go.sum index eb466d0..9730143 100644 --- a/go.sum +++ b/go.sum @@ -31,8 +31,8 @@ cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohl cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= -git.sr.ht/~sircmpwn/dowork v0.0.0-20221010085743-46c4299d76a1 h1:EvPKkneKkF/f7zEgKPqIZVyj3jWO8zSmsBOvMhAGqMA= -git.sr.ht/~sircmpwn/dowork v0.0.0-20221010085743-46c4299d76a1/go.mod h1:8neHEO3503w/rNtttnR0JFpQgM/GFhaafVwvkPsFIDw= +git.sr.ht/~sircmpwn/dowork v0.0.0-20241216125407-2b00aa42322c h1:v2opuaN0C5ZpuCifRNR9ZQ8V9IG+Ja80otK1MFj5RnI= +git.sr.ht/~sircmpwn/dowork v0.0.0-20241216125407-2b00aa42322c/go.mod h1:8neHEO3503w/rNtttnR0JFpQgM/GFhaafVwvkPsFIDw= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= github.com/Masterminds/squirrel v1.5.4 h1:uUcX/aBc8O7Fg9kaISIUsHXdKuqehiXAMQTYX8afzqM= -- 2.45.2