We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 02ec3bd + cf5263e commit c0e6c4fCopy full SHA for c0e6c4f
go/worker.go
@@ -56,8 +56,8 @@ func main() {
56
go func() {
57
for d := range msgs {
58
log.Printf("Received a message: %s", d.Body)
59
- dot_count := bytes.Count(d.Body, []byte("."))
60
- t := time.Duration(dot_count)
+ dotCount := bytes.Count(d.Body, []byte("."))
+ t := time.Duration(dotCount)
61
time.Sleep(t * time.Second)
62
log.Printf("Done")
63
d.Ack(false)
0 commit comments