Skip to content

Commit

Permalink
chg: [config] no more ardb -> default kvrocks backend
Browse files Browse the repository at this point in the history
  • Loading branch information
adulau committed Dec 24, 2023
1 parent bd7b1b6 commit 329d10b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bin/sighting-server.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@
cfg = configparser.ConfigParser()
cfg.read('../cfg/server.cfg')

ardb_port = cfg.get('server', 'ardb_port')
backend_port = cfg.get('server', 'backend_port')
api_key = cfg.get('server', 'api_key')
default_source = cfg.get('server', 'default_source')
default_org_uuid = cfg.get('server', 'default_org_uuid')
journal = cfg.get('server', 'journal')
version = '0.2'
r = redis.StrictRedis(port=ardb_port, db=0, decode_responses=True, charset='utf-8')
r = redis.StrictRedis(port=backend_port, db=0, decode_responses=True, charset='utf-8')


def _validate_uuid(value=None):
Expand Down
4 changes: 2 additions & 2 deletions cfg/server.cfg.sample
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[server]
ardb_port = 6666
ardb_socket = /tmp/ardb.sock
backend_port = 6666
backend_socket = /tmp/ardb.sock
api_key = afdef83f9cc7c87b801c36e4af632ef06af2f2ef
default_source = unknown
default_org_uuid = 2232e011-1b2d-4ae0-9792-2789d77d2b07
Expand Down

0 comments on commit 329d10b

Please sign in to comment.