Skip to content

Commit 488dc64

Browse files
committed
broadcast example
Signed-off-by: Gabriele Santomaggio <[email protected]>
1 parent 4276b69 commit 488dc64

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/examples/broadcast/broadcast.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ func main() {
3838
IsExclusive: true,
3939
})
4040

41+
if err != nil {
42+
rmq.Error("Error DeclareQueue", err)
43+
return
44+
}
45+
4146
_, err = management.Bind(context.TODO(), &rmq.ExchangeToQueueBindingSpecification{
4247
SourceExchange: broadcastExchange,
4348
DestinationQueue: q.Name(),

0 commit comments

Comments
 (0)