mirror of https://gitlab.com/bashrc2/epicyon
Snake case
parent
71df603c37
commit
2277bd8975
|
@ -18413,7 +18413,7 @@ def runDaemon(content_license_url: str,
|
|||
show_node_info_version: bool,
|
||||
broch_mode: bool,
|
||||
verify_all_signatures: bool,
|
||||
sendThreadsTimeoutMins: int,
|
||||
send_threads_timeout_mins: int,
|
||||
dormantMonths: int,
|
||||
maxNewswirePosts: int,
|
||||
allowLocalNetworkAccess: bool,
|
||||
|
@ -18840,13 +18840,13 @@ def runDaemon(content_license_url: str,
|
|||
httpd.thrCache.start()
|
||||
|
||||
# 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')
|
||||
httpd.thrPostsQueue = \
|
||||
threadWithTrace(target=runPostsQueue,
|
||||
args=(base_dir, httpd.sendThreads, debug,
|
||||
httpd.sendThreadsTimeoutMins), daemon=True)
|
||||
httpd.send_threads_timeout_mins), daemon=True)
|
||||
if not unitTest:
|
||||
httpd.thrPostsWatchdog = \
|
||||
threadWithTrace(target=runPostsWatchdog,
|
||||
|
|
14
epicyon.py
14
epicyon.py
|
@ -186,8 +186,8 @@ parser.add_argument('--default_reply_interval_hrs',
|
|||
default=1000,
|
||||
help='How many hours after publication of a post ' +
|
||||
'are replies to it permitted')
|
||||
parser.add_argument('--sendThreadsTimeoutMins',
|
||||
dest='sendThreadsTimeoutMins', type=int,
|
||||
parser.add_argument('--send_threads_timeout_mins',
|
||||
dest='send_threads_timeout_mins', type=int,
|
||||
default=30,
|
||||
help='How many minutes before a thread to send out ' +
|
||||
'posts expires')
|
||||
|
@ -3068,10 +3068,10 @@ dormantMonths = \
|
|||
if dormantMonths is not None:
|
||||
args.dormantMonths = int(dormantMonths)
|
||||
|
||||
sendThreadsTimeoutMins = \
|
||||
getConfigParam(base_dir, 'sendThreadsTimeoutMins')
|
||||
if sendThreadsTimeoutMins is not None:
|
||||
args.sendThreadsTimeoutMins = int(sendThreadsTimeoutMins)
|
||||
send_threads_timeout_mins = \
|
||||
getConfigParam(base_dir, 'send_threads_timeout_mins')
|
||||
if send_threads_timeout_mins is not None:
|
||||
args.send_threads_timeout_mins = int(send_threads_timeout_mins)
|
||||
|
||||
max_like_count = \
|
||||
getConfigParam(base_dir, 'max_like_count')
|
||||
|
@ -3222,7 +3222,7 @@ if __name__ == "__main__":
|
|||
args.show_node_info_version,
|
||||
args.broch_mode,
|
||||
args.verify_all_signatures,
|
||||
args.sendThreadsTimeoutMins,
|
||||
args.send_threads_timeout_mins,
|
||||
args.dormantMonths,
|
||||
args.maxNewswirePosts,
|
||||
args.allowLocalNetworkAccess,
|
||||
|
|
16
tests.py
16
tests.py
|
@ -782,7 +782,7 @@ def createServerAlice(path: str, domain: str, port: int,
|
|||
allowLocalNetworkAccess = True
|
||||
maxNewswirePosts = 20
|
||||
dormantMonths = 3
|
||||
sendThreadsTimeoutMins = 30
|
||||
send_threads_timeout_mins = 30
|
||||
maxFollowers = 10
|
||||
verify_all_signatures = True
|
||||
broch_mode = False
|
||||
|
@ -806,7 +806,7 @@ def createServerAlice(path: str, domain: str, port: int,
|
|||
show_node_info_version,
|
||||
broch_mode,
|
||||
verify_all_signatures,
|
||||
sendThreadsTimeoutMins,
|
||||
send_threads_timeout_mins,
|
||||
dormantMonths, maxNewswirePosts,
|
||||
allowLocalNetworkAccess,
|
||||
2048, False, True, False, False, True, maxFollowers,
|
||||
|
@ -924,7 +924,7 @@ def createServerBob(path: str, domain: str, port: int,
|
|||
allowLocalNetworkAccess = True
|
||||
maxNewswirePosts = 20
|
||||
dormantMonths = 3
|
||||
sendThreadsTimeoutMins = 30
|
||||
send_threads_timeout_mins = 30
|
||||
maxFollowers = 10
|
||||
verify_all_signatures = True
|
||||
broch_mode = False
|
||||
|
@ -948,7 +948,7 @@ def createServerBob(path: str, domain: str, port: int,
|
|||
show_node_info_version,
|
||||
broch_mode,
|
||||
verify_all_signatures,
|
||||
sendThreadsTimeoutMins,
|
||||
send_threads_timeout_mins,
|
||||
dormantMonths, maxNewswirePosts,
|
||||
allowLocalNetworkAccess,
|
||||
2048, False, True, False, False, True, maxFollowers,
|
||||
|
@ -993,7 +993,7 @@ def createServerEve(path: str, domain: str, port: int, federationList: [],
|
|||
allowLocalNetworkAccess = True
|
||||
maxNewswirePosts = 20
|
||||
dormantMonths = 3
|
||||
sendThreadsTimeoutMins = 30
|
||||
send_threads_timeout_mins = 30
|
||||
maxFollowers = 10
|
||||
verify_all_signatures = True
|
||||
broch_mode = False
|
||||
|
@ -1018,7 +1018,7 @@ def createServerEve(path: str, domain: str, port: int, federationList: [],
|
|||
show_node_info_version,
|
||||
broch_mode,
|
||||
verify_all_signatures,
|
||||
sendThreadsTimeoutMins,
|
||||
send_threads_timeout_mins,
|
||||
dormantMonths, maxNewswirePosts,
|
||||
allowLocalNetworkAccess,
|
||||
2048, False, True, False, False, True, maxFollowers,
|
||||
|
@ -1065,7 +1065,7 @@ def createServerGroup(path: str, domain: str, port: int,
|
|||
allowLocalNetworkAccess = True
|
||||
maxNewswirePosts = 20
|
||||
dormantMonths = 3
|
||||
sendThreadsTimeoutMins = 30
|
||||
send_threads_timeout_mins = 30
|
||||
maxFollowers = 10
|
||||
verify_all_signatures = True
|
||||
broch_mode = False
|
||||
|
@ -1090,7 +1090,7 @@ def createServerGroup(path: str, domain: str, port: int,
|
|||
show_node_info_version,
|
||||
broch_mode,
|
||||
verify_all_signatures,
|
||||
sendThreadsTimeoutMins,
|
||||
send_threads_timeout_mins,
|
||||
dormantMonths, maxNewswirePosts,
|
||||
allowLocalNetworkAccess,
|
||||
2048, False, True, False, False, True, maxFollowers,
|
||||
|
|
Loading…
Reference in New Issue