From afc06a385019f59adc66fcb01d5671e941b56cb4 Mon Sep 17 00:00:00 2001 From: Alexandre Dulaunoy Date: Mon, 19 Oct 2020 08:52:23 +0200 Subject: [PATCH] chg: [redis] use default Redis port --- .github/workflows/python-app.yml | 4 ++++ bin/napkin.py | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index c3b5c37..829a47f 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -15,6 +15,10 @@ jobs: runs-on: ubuntu-latest steps: + - uses: zhulik/redis-action@1.1.0 + with: + redis version: '5' + number of databases: 100 - uses: actions/checkout@v2 - name: Set up Python 3.8 uses: actions/setup-python@v2 diff --git a/bin/napkin.py b/bin/napkin.py index 6459906..65ee2c0 100644 --- a/bin/napkin.py +++ b/bin/napkin.py @@ -39,14 +39,14 @@ if args.f is None: # args.full_labels = True if not args.binary: - redisdb = redis.Redis(host="localhost", port=6380, db=5, encoding='utf-8', decode_responses=True) + redisdb = redis.Redis(host="localhost", port=6379, db=5, encoding='utf-8', decode_responses=True) else: - redisdb = redis.Redis(host="localhost", port=6380, db=5) + redisdb = redis.Redis(host="localhost", port=6379, db=5) try: redisdb.ping() except: - print("Redis database on port 6380 is not running...", file=sys.stderr) + print("Redis database on port 6379 is not running...", file=sys.stderr) sys.exit() if not args.no_flushdb: