Skip to content

Commit 6c60138

Browse files
committed
Fix Redis port configuration in README, docker-compose, and test files
1 parent 77c1b2a commit 6c60138

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,12 @@ unix_socket_path : /tmp/redis.sock
5959
```python
6060
import asyncio
6161
import uuid
62-
from fd import FQ
62+
from fq import FQ
6363
6464
6565
async def main():
6666
fq = FQ("config.conf")
67-
await fq._initialize() # load config, connect to Redis, register Lua scripts
67+
await fq.initialize() # load config, connect to Redis, register Lua scripts
6868
6969
job_id = str(uuid.uuid4())
7070
await fq.enqueue(
@@ -99,8 +99,8 @@ Common operations:
9999

100100
## Development
101101

102-
- Start Redis for local development: `make redis` (binds to `localhost:6380`; matches `tests/test.conf`).
103-
- Run the suite: `make test` (requires the Redis instance above or another matching your config).
102+
- Start Redis for local development: `make redis-up` (binds to `localhost:6379`; matches `tests/test.conf`).
103+
- Run the suite: `make test` (automatically starts and tears down Redis).
104104
- Build a wheel: `make build`
105105
- Install/uninstall from the build: `make install` / `make uninstall`
106106
- Stop the dev Redis container: `make redis-down`

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services:
66
container_name: fq-redis
77
restart: unless-stopped
88
ports:
9-
- "6380:6379"
9+
- "6379:6379"
1010
command: ["redis-server", "--appendonly", "no"]
1111
volumes:
1212
- redis-data:/data

tests/test.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ conn_type : tcp_sock
1111
;; unix connection settings
1212
unix_socket_path : /tmp/redis.sock
1313
;; tcp connection settings
14-
port : 6380
14+
port : 6379
1515
host : 127.0.0.1
1616
clustered : false
1717
password :

0 commit comments

Comments
 (0)