Skip to content

Commit

Permalink
fixup types
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathansick committed Apr 13, 2023
1 parent 2fd7d22 commit 0055f60
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/timessquare/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ class Config(BaseSettings):

redis_url: RedisDsn = Field(
env="TS_REDIS_URL",
default_factory=lambda: RedisDsn("redis://localhost:6379/0"),
default_factory=lambda: RedisDsn(
"redis://localhost:6379/0", scheme="redis"
),
)
"""URL for the redis instance, used by the worker queue."""

Expand Down Expand Up @@ -107,7 +109,9 @@ class Config(BaseSettings):

redis_queue_url: RedisDsn = Field(
env="TS_REDIS_QUEUE_URL",
default_factory=lambda: RedisDsn("redis://localhost:6379/1"),
default_factory=lambda: RedisDsn(
"redis://localhost:6379/1", scheme="redis"
),
)

queue_name: str = Field("arq:queue", env="TS_REDIS_QUEUE_NAME")
Expand Down

0 comments on commit 0055f60

Please sign in to comment.