Skip to content

w.WaitTimeSecond not available #4

@brunozrk

Description

@brunozrk

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions