From 4f676f7153d75ec3cb31523793bde8e347cbdc6a Mon Sep 17 00:00:00 2001 From: Tim Date: Wed, 3 Apr 2024 14:00:36 -0400 Subject: [PATCH] removed polling as a suggested config --- dexorder-alpha.toml | 1 - dexorder-mock.toml | 2 -- src/dexorder/blockstate/state.py | 2 +- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/dexorder-alpha.toml b/dexorder-alpha.toml index f4505e3..171bba0 100644 --- a/dexorder-alpha.toml +++ b/dexorder-alpha.toml @@ -3,7 +3,6 @@ rpc_url='http://alpharpc:8545' ws_url='ws://alpharpc:8545' db_url='postgresql://dexorder:redroxed@postgres/dexorder' redis_url='redis://redis:6379' -polling=1 [deployments] 1337='alpha' diff --git a/dexorder-mock.toml b/dexorder-mock.toml index 31f9f95..3889313 100644 --- a/dexorder-mock.toml +++ b/dexorder-mock.toml @@ -1,5 +1,3 @@ account='test1' rpc_url='local' ws_url='local_ws' - -polling=2 # Use if backend python sucks 100% CPU diff --git a/src/dexorder/blockstate/state.py b/src/dexorder/blockstate/state.py index 7fb9909..a5e353b 100644 --- a/src/dexorder/blockstate/state.py +++ b/src/dexorder/blockstate/state.py @@ -176,7 +176,7 @@ class BlockState: difflist = self.diffs_by_series.get(diff.series,{}).get(diff.key) if difflist is not None: difflist.remove(diff.entry) - state_log.info(('removed' if remove_series_diffs else 'promoting')+f' branch {branch}') + state_log.info(('removed' if remove_series_diffs else 'promoted')+f' branch {branch}') def get(self, fork: Fork, series, key, default=NARG):