Skip to content

Conversation

Flosckow
Copy link
Collaborator

@Flosckow Flosckow commented Aug 25, 2025

Description

Please include a summary of the change and specify which issue is being addressed. Additionally, provide relevant motivation and context.

Fixes #2451

Type of change

Please delete options that are not relevant.

  • Documentation (typos, code examples, or any documentation updates)
  • Bug fix (a non-breaking change that resolves an issue)
  • New feature (a non-breaking change that adds functionality)
  • Breaking change (a fix or feature that would disrupt existing functionality)
  • This change requires a documentation update

Checklist

  • My code adheres to the style guidelines of this project (just lint shows no errors)
  • I have conducted a self-review of my own code
  • I have made the necessary changes to the documentation
  • My changes do not generate any new warnings
  • I have added tests to validate the effectiveness of my fix or the functionality of my new feature
  • Both new and existing unit tests pass successfully on my local environment by running just test-coverage
  • I have ensured that static analysis tests are passing by running just static-analysis
  • I have included code examples to illustrate the modifications

@Flosckow
Copy link
Collaborator Author

@Lancetnik, can you check it?
this simple example

from faststream import FastStream
from faststream.rabbit import RabbitBroker, RabbitQueue
from faststream._internal.configs.settings import Settings

q = RabbitQueue("test")

settings = Settings(q1=q)
broker = RabbitBroker(settings=settings)

app = FastStream(broker)

@broker.subscriber(queue=Settings("q1"))
async def base_handler(body: str):
    print(body)


@app.on_startup
async def pub():
    await broker.connect()
    await broker.publish("hi", queue=Settings("q1"))

@Flosckow Flosckow changed the title test Add configurations for subscriber and publisher Aug 27, 2025
@Lancetnik Lancetnik changed the base branch from dev to main September 4, 2025 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: broker-level topic configuration

2 participants