-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
Im getting the following error while trying to set a different WaitTimeSecond:
w.WaitTimeSecond undefined (type *worker.Service has no field or method WaitTimeSecond)
code:
w, err := worker.NewService(QueueName)
if err != nil {
log.Printf("Error creating new Worker Service: %s\n", err)
}
w.WaitTimeSecond = 10
w.Start(worker.HandlerFunc(Process))
What is wrong?
I don't know a lot about golang, but looking into code, there isn't a part of the code replacing the default value
https://github.com/bufferapp/sqs-worker-go/blob/master/worker/worker.go#L56
https://github.com/bufferapp/sqs-worker-go/blob/master/worker/worker.go#L101
Metadata
Metadata
Assignees
Labels
No labels