Skip to content

Commit

Permalink
Update config to use TCP rather than IPC universally
Browse files Browse the repository at this point in the history
  • Loading branch information
cranklin committed Jul 8, 2018
1 parent d879801 commit 936b09b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
6 changes: 2 additions & 4 deletions config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@ user:
peer_db: "./data/peer.db"
max_peers: 30
min_peers: 10
queue_bind_in: "ipc:///tmp/crank_in"
queue_bind_out: "ipc:///tmp/crank_out"
win_queue_bind_in: "tcp://127.0.0.1:5555"
win_queue_bind_out: "tcp://127.0.0.1:5556"
queue_bind_in: "tcp://127.0.0.1:30014"
queue_bind_out: "tcp://127.0.0.1:30015"
queue_processing_workers: 2
network:
name: "Cranky Coin"
Expand Down
5 changes: 2 additions & 3 deletions crankycoin/services/queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@

from crankycoin import config, logger

WIN32 = 'win32' in sys.platform

class Queue(object):
QUEUE_BIND_IN = config['user']['queue_bind_in'] if not WIN32 else config['user']['win_queue_bind_in']
QUEUE_BIND_OUT = config['user']['queue_bind_out'] if not WIN32 else config['user']['win_queue_bind_out']
QUEUE_BIND_IN = config['user']['queue_bind_in']
QUEUE_BIND_OUT = config['user']['queue_bind_out']
QUEUE_PROCESSING_WORKERS = config['user']['queue_processing_workers']

@classmethod
Expand Down

0 comments on commit 936b09b

Please sign in to comment.