Skip to content

Commit

Permalink
update the readme
Browse files Browse the repository at this point in the history
  • Loading branch information
devigned committed Jun 1, 2018
1 parent 011ce47 commit 6f4c251
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,8 @@ ns, err := servicebus.NewNamespace(servicebus.NamespaceWithConnectionString(conn
handleErr(err)

queueName := "helloworld"
// Create the queue if it doesn't exist
qm := ns.NewQueueManager()
_, err := qm.Put(context.Background(), queueName)
q, err := ns.NewQueue(context.Background(), queueName)
handleErr(err)
q := ns.NewQueue(queueName)

// Send message to queue
err := q.Send(context.Background(), servicebus.NewEventFromString("Hello World!"))
Expand Down

0 comments on commit 6f4c251

Please sign in to comment.