From ef97c9b69f8bb075b9b3d33aaab9ef50cacf3890 Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Mon, 15 Mar 2021 19:14:23 -0300 Subject: [PATCH] torba-server -> hub --- docker/wallet_server_entrypoint.sh | 4 ++-- lbry/wallet/server/cli.py | 2 +- lbry/wallet/server/env.py | 2 +- setup.py | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docker/wallet_server_entrypoint.sh b/docker/wallet_server_entrypoint.sh index b33ff87a7..d336d30f4 100755 --- a/docker/wallet_server_entrypoint.sh +++ b/docker/wallet_server_entrypoint.sh @@ -20,6 +20,6 @@ if [[ -n "$SNAPSHOT_URL" ]] && [[ ! -f /database/claims.db ]]; then rm "$filename" fi -/home/lbry/.local/bin/torba-elastic-sync /database/claims.db +/home/lbry/.local/bin/hub-elastic-sync /database/claims.db echo 'starting server' -/home/lbry/.local/bin/torba-server "$@" +/home/lbry/.local/bin/hub "$@" diff --git a/lbry/wallet/server/cli.py b/lbry/wallet/server/cli.py index 5cb15fc5e..708359821 100644 --- a/lbry/wallet/server/cli.py +++ b/lbry/wallet/server/cli.py @@ -8,7 +8,7 @@ from lbry.wallet.server.server import Server def get_argument_parser(): parser = argparse.ArgumentParser( - prog="torba-server" + prog="hub" ) parser.add_argument("spvserver", type=str, help="Python class path to SPV server implementation.", nargs="?", default="lbry.wallet.server.coin.LBC") diff --git a/lbry/wallet/server/env.py b/lbry/wallet/server/env.py index 7ce0e7c7e..a3e47a78f 100644 --- a/lbry/wallet/server/env.py +++ b/lbry/wallet/server/env.py @@ -97,7 +97,7 @@ class Env: self.identities = [identity for identity in (clearnet_identity, tor_identity) if identity is not None] - self.database_query_timeout = float(self.integer('QUERY_TIMEOUT_MS', 250)) / 1000.0 + self.database_query_timeout = float(self.integer('QUERY_TIMEOUT_MS', 3000)) / 1000.0 @classmethod def default(cls, envvar, default): diff --git a/setup.py b/setup.py index 40b2d896c..5357dc0a1 100644 --- a/setup.py +++ b/setup.py @@ -28,9 +28,9 @@ setup( entry_points={ 'console_scripts': [ 'lbrynet=lbry.extras.cli:main', - 'torba-server=lbry.wallet.server.cli:main', + 'hub=lbry.wallet.server.cli:main', 'orchstr8=lbry.wallet.orchstr8.cli:main', - 'torba-elastic-sync=lbry.wallet.server.db.elasticsearch.sync:run_elastic_sync' + 'hub-elastic-sync=lbry.wallet.server.db.elasticsearch.sync:run_elastic_sync' ], }, install_requires=[