Skip to content

Commit

Permalink
fix: allow users to pass nkeys_seed_str as argument for NATS (FastA…
Browse files Browse the repository at this point in the history
…pi) Router.

See related MR: airtai#1908
  • Loading branch information
Drakorgaur committed Nov 18, 2024
1 parent e9e0b41 commit d4cbb0d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions faststream/nats/fastapi/fastapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,10 @@ def __init__(
Optional[str],
Doc("Nkeys seed to be used."),
] = None,
nkeys_seed_str: Annotated[
Optional[str],
Doc("Raw nkeys seed to be used."),
] = None,
inbox_prefix: Annotated[
Union[str, bytes],
Doc(
Expand Down Expand Up @@ -533,6 +537,7 @@ def __init__(
user_jwt_cb=user_jwt_cb,
user_credentials=user_credentials,
nkeys_seed=nkeys_seed,
nkeys_seed_str=nkeys_seed_str,
inbox_prefix=inbox_prefix,
pending_size=pending_size,
flush_timeout=flush_timeout,
Expand Down

0 comments on commit d4cbb0d

Please sign in to comment.