Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion job.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package workers

type jobFunc func(message *Msg)
type JobFunc func(message *Msg)
4 changes: 2 additions & 2 deletions manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
type manager struct {
queue string
fetch Fetcher
job jobFunc
job JobFunc
concurrency int
workers []*worker
workersM *sync.Mutex
Expand Down Expand Up @@ -93,7 +93,7 @@ func (m *manager) reset() {
m.fetch = Config.Fetch(m.queue)
}

func newManager(queue string, job jobFunc, concurrency int, mids ...Action) *manager {
func newManager(queue string, job JobFunc, concurrency int, mids ...Action) *manager {
var customMids *Middlewares
if len(mids) == 0 {
customMids = Middleware
Expand Down
2 changes: 1 addition & 1 deletion workers.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var Middleware = NewMiddleware(
&MiddlewareStats{},
)

func Process(queue string, job jobFunc, concurrency int, mids ...Action) {
func Process(queue string, job JobFunc, concurrency int, mids ...Action) {
access.Lock()
defer access.Unlock()

Expand Down