Snake case

merge-requests/30/head
Bob Mottram 2021-12-25 18:44:18 +00:00
parent 71df603c37
commit 2277bd8975
3 changed files with 18 additions and 18 deletions

View File

@ -18413,7 +18413,7 @@ def runDaemon(content_license_url: str,
show_node_info_version: bool, show_node_info_version: bool,
broch_mode: bool, broch_mode: bool,
verify_all_signatures: bool, verify_all_signatures: bool,
sendThreadsTimeoutMins: int, send_threads_timeout_mins: int,
dormantMonths: int, dormantMonths: int,
maxNewswirePosts: int, maxNewswirePosts: int,
allowLocalNetworkAccess: bool, allowLocalNetworkAccess: bool,
@ -18840,13 +18840,13 @@ def runDaemon(content_license_url: str,
httpd.thrCache.start() httpd.thrCache.start()
# number of mins after which sending posts or updates will expire # number of mins after which sending posts or updates will expire
httpd.sendThreadsTimeoutMins = sendThreadsTimeoutMins httpd.send_threads_timeout_mins = send_threads_timeout_mins
print('Creating posts queue') print('Creating posts queue')
httpd.thrPostsQueue = \ httpd.thrPostsQueue = \
threadWithTrace(target=runPostsQueue, threadWithTrace(target=runPostsQueue,
args=(base_dir, httpd.sendThreads, debug, args=(base_dir, httpd.sendThreads, debug,
httpd.sendThreadsTimeoutMins), daemon=True) httpd.send_threads_timeout_mins), daemon=True)
if not unitTest: if not unitTest:
httpd.thrPostsWatchdog = \ httpd.thrPostsWatchdog = \
threadWithTrace(target=runPostsWatchdog, threadWithTrace(target=runPostsWatchdog,

View File

@ -186,8 +186,8 @@ parser.add_argument('--default_reply_interval_hrs',
default=1000, default=1000,
help='How many hours after publication of a post ' + help='How many hours after publication of a post ' +
'are replies to it permitted') 'are replies to it permitted')
parser.add_argument('--sendThreadsTimeoutMins', parser.add_argument('--send_threads_timeout_mins',
dest='sendThreadsTimeoutMins', type=int, dest='send_threads_timeout_mins', type=int,
default=30, default=30,
help='How many minutes before a thread to send out ' + help='How many minutes before a thread to send out ' +
'posts expires') 'posts expires')
@ -3068,10 +3068,10 @@ dormantMonths = \
if dormantMonths is not None: if dormantMonths is not None:
args.dormantMonths = int(dormantMonths) args.dormantMonths = int(dormantMonths)
sendThreadsTimeoutMins = \ send_threads_timeout_mins = \
getConfigParam(base_dir, 'sendThreadsTimeoutMins') getConfigParam(base_dir, 'send_threads_timeout_mins')
if sendThreadsTimeoutMins is not None: if send_threads_timeout_mins is not None:
args.sendThreadsTimeoutMins = int(sendThreadsTimeoutMins) args.send_threads_timeout_mins = int(send_threads_timeout_mins)
max_like_count = \ max_like_count = \
getConfigParam(base_dir, 'max_like_count') getConfigParam(base_dir, 'max_like_count')
@ -3222,7 +3222,7 @@ if __name__ == "__main__":
args.show_node_info_version, args.show_node_info_version,
args.broch_mode, args.broch_mode,
args.verify_all_signatures, args.verify_all_signatures,
args.sendThreadsTimeoutMins, args.send_threads_timeout_mins,
args.dormantMonths, args.dormantMonths,
args.maxNewswirePosts, args.maxNewswirePosts,
args.allowLocalNetworkAccess, args.allowLocalNetworkAccess,

View File

@ -782,7 +782,7 @@ def createServerAlice(path: str, domain: str, port: int,
allowLocalNetworkAccess = True allowLocalNetworkAccess = True
maxNewswirePosts = 20 maxNewswirePosts = 20
dormantMonths = 3 dormantMonths = 3
sendThreadsTimeoutMins = 30 send_threads_timeout_mins = 30
maxFollowers = 10 maxFollowers = 10
verify_all_signatures = True verify_all_signatures = True
broch_mode = False broch_mode = False
@ -806,7 +806,7 @@ def createServerAlice(path: str, domain: str, port: int,
show_node_info_version, show_node_info_version,
broch_mode, broch_mode,
verify_all_signatures, verify_all_signatures,
sendThreadsTimeoutMins, send_threads_timeout_mins,
dormantMonths, maxNewswirePosts, dormantMonths, maxNewswirePosts,
allowLocalNetworkAccess, allowLocalNetworkAccess,
2048, False, True, False, False, True, maxFollowers, 2048, False, True, False, False, True, maxFollowers,
@ -924,7 +924,7 @@ def createServerBob(path: str, domain: str, port: int,
allowLocalNetworkAccess = True allowLocalNetworkAccess = True
maxNewswirePosts = 20 maxNewswirePosts = 20
dormantMonths = 3 dormantMonths = 3
sendThreadsTimeoutMins = 30 send_threads_timeout_mins = 30
maxFollowers = 10 maxFollowers = 10
verify_all_signatures = True verify_all_signatures = True
broch_mode = False broch_mode = False
@ -948,7 +948,7 @@ def createServerBob(path: str, domain: str, port: int,
show_node_info_version, show_node_info_version,
broch_mode, broch_mode,
verify_all_signatures, verify_all_signatures,
sendThreadsTimeoutMins, send_threads_timeout_mins,
dormantMonths, maxNewswirePosts, dormantMonths, maxNewswirePosts,
allowLocalNetworkAccess, allowLocalNetworkAccess,
2048, False, True, False, False, True, maxFollowers, 2048, False, True, False, False, True, maxFollowers,
@ -993,7 +993,7 @@ def createServerEve(path: str, domain: str, port: int, federationList: [],
allowLocalNetworkAccess = True allowLocalNetworkAccess = True
maxNewswirePosts = 20 maxNewswirePosts = 20
dormantMonths = 3 dormantMonths = 3
sendThreadsTimeoutMins = 30 send_threads_timeout_mins = 30
maxFollowers = 10 maxFollowers = 10
verify_all_signatures = True verify_all_signatures = True
broch_mode = False broch_mode = False
@ -1018,7 +1018,7 @@ def createServerEve(path: str, domain: str, port: int, federationList: [],
show_node_info_version, show_node_info_version,
broch_mode, broch_mode,
verify_all_signatures, verify_all_signatures,
sendThreadsTimeoutMins, send_threads_timeout_mins,
dormantMonths, maxNewswirePosts, dormantMonths, maxNewswirePosts,
allowLocalNetworkAccess, allowLocalNetworkAccess,
2048, False, True, False, False, True, maxFollowers, 2048, False, True, False, False, True, maxFollowers,
@ -1065,7 +1065,7 @@ def createServerGroup(path: str, domain: str, port: int,
allowLocalNetworkAccess = True allowLocalNetworkAccess = True
maxNewswirePosts = 20 maxNewswirePosts = 20
dormantMonths = 3 dormantMonths = 3
sendThreadsTimeoutMins = 30 send_threads_timeout_mins = 30
maxFollowers = 10 maxFollowers = 10
verify_all_signatures = True verify_all_signatures = True
broch_mode = False broch_mode = False
@ -1090,7 +1090,7 @@ def createServerGroup(path: str, domain: str, port: int,
show_node_info_version, show_node_info_version,
broch_mode, broch_mode,
verify_all_signatures, verify_all_signatures,
sendThreadsTimeoutMins, send_threads_timeout_mins,
dormantMonths, maxNewswirePosts, dormantMonths, maxNewswirePosts,
allowLocalNetworkAccess, allowLocalNetworkAccess,
2048, False, True, False, False, True, maxFollowers, 2048, False, True, False, False, True, maxFollowers,