Skip to content

Commit

Permalink
docs: update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
mingrammer committed May 4, 2020
1 parent 62248b7 commit 8ad2c0a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions docs/getting-started/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,23 +262,21 @@ with Diagram(name="Advanced Web Service with On-Premise (colored)", show=False):
from urllib.request import urlretrieve

from diagrams import Cluster, Diagram
from diagrams.custom import Custom
from diagrams.aws.database import Aurora
from diagrams.custom import Custom
from diagrams.k8s.compute import Pod

# Download an image to be used into a Custom Node class
rabbitmq_url = "https://jpadilla.github.io/rabbitmqapp/assets/img/icon.png"
rabbitmq_icon = "rabbitmq.png"
urlretrieve(rabbitmq_url, rabbitmq_icon)


with Diagram("Broker Consumers", show=False):
with Cluster("Consumers"):
consumers = [
Pod("worker"),
Pod("worker"),
Pod("worker")
]
Pod("worker")]

queue = Custom("Message queue", rabbitmq_icon)

Expand Down

0 comments on commit 8ad2c0a

Please sign in to comment.