We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
The text was updated successfully, but these errors were encountered:
I think it should be:
worker.WaitTimeSecond
If you see at worker.go Service struct does not have a WaitTimeSecond property. It is an exported variable WaitTimeSecond.
worker.go
Sorry, something went wrong.
No branches or pull requests
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:
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
The text was updated successfully, but these errors were encountered: