Skip to content

Commit 153d056

Browse files
committed
Remove context usage for now
1 parent 3936a02 commit 153d056

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

tailmq.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import (
99
"net/url"
1010
"strings"
1111
"time"
12-
"context"
1312

1413
"github.com/olaurendeau/tailmq/consumer"
1514
"github.com/streadway/amqp"
@@ -42,8 +41,6 @@ type Config struct {
4241
func main() {
4342
var err error
4443

45-
ctx := context.Background()
46-
4744
config := new(Config)
4845

4946
config.uri = flag.String("uri", "amqp://guest:guest@localhost:5672/", "RabbitMQ amqp uri")
@@ -80,8 +77,6 @@ func main() {
8077
printDelivery(d, config)
8178
case err := <-c.Err:
8279
failOnError(err, "Fail consuming")
83-
case <-ctx.Done():
84-
return
8580
}
8681
}
8782
}

0 commit comments

Comments
 (0)