Skip to content

Commit

Permalink
Fix build docker username script
Browse files Browse the repository at this point in the history
  • Loading branch information
sternakt committed Oct 12, 2023
1 parent 763da5a commit 5967cad
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions faststream_cookiecutter_test/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ class Greeting(BaseModel):
)


@broker.subscriber("names", description="Consumes messages from names topic and produces messages to greetings topic")
@broker.subscriber(
"names",
description="Consumes messages from names topic and produces messages to greetings topic",
)
async def on_names(msg: Name, logger: Logger) -> None:
result = f"hello {msg.name}"
logger.info(result)
Expand All @@ -50,11 +53,9 @@ async def _publish_names() -> None:
]
while True:
name = random.choice(names) # nosec

await broker.publish(Name(name=name), topic="names")




await asyncio.sleep(2)

asyncio.create_task(_publish_names())
2 changes: 1 addition & 1 deletion scripts/build_docker.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash

docker build -t ghcr.io/sternakt@gmail.com/faststream_cookiecutter_test:latest .
docker build -t ghcr.io/sternakt/faststream_cookiecutter_test:latest .

0 comments on commit 5967cad

Please sign in to comment.