Snake case

main
Bob Mottram 2021-12-25 23:05:40 +00:00
parent 3a26274342
commit fbdd3f7149
1 changed files with 5 additions and 5 deletions

View File

@ -1324,15 +1324,15 @@ class PubServer(BaseHTTPRequestHandler):
if not self.server.outboxThread.get(accountOutboxThreadName): if not self.server.outboxThread.get(accountOutboxThreadName):
self.server.outboxThread[accountOutboxThreadName] = \ self.server.outboxThread[accountOutboxThreadName] = \
[None] * maxOutboxThreadsPerAccount [None] * maxOutboxThreadsPerAccount
self.server.outboxThreadIndex[accountOutboxThreadName] = 0 self.server.outbox_thread_index[accountOutboxThreadName] = 0
return 0 return 0
# increment the ring buffer index # increment the ring buffer index
index = self.server.outboxThreadIndex[accountOutboxThreadName] + 1 index = self.server.outbox_thread_index[accountOutboxThreadName] + 1
if index >= maxOutboxThreadsPerAccount: if index >= maxOutboxThreadsPerAccount:
index = 0 index = 0
self.server.outboxThreadIndex[accountOutboxThreadName] = index self.server.outbox_thread_index[accountOutboxThreadName] = index
# remove any existing thread from the current index in the buffer # remove any existing thread from the current index in the buffer
if self.server.outboxThread.get(accountOutboxThreadName): if self.server.outboxThread.get(accountOutboxThreadName):
@ -1352,7 +1352,7 @@ class PubServer(BaseHTTPRequestHandler):
print('Creating outbox thread ' + print('Creating outbox thread ' +
accountOutboxThreadName + '/' + accountOutboxThreadName + '/' +
str(self.server.outboxThreadIndex[accountOutboxThreadName])) str(self.server.outbox_thread_index[accountOutboxThreadName]))
self.server.outboxThread[accountOutboxThreadName][index] = \ self.server.outboxThread[accountOutboxThreadName][index] = \
threadWithTrace(target=self._postToOutbox, threadWithTrace(target=self._postToOutbox,
args=(messageJson.copy(), args=(messageJson.copy(),
@ -18717,7 +18717,7 @@ def runDaemon(content_license_url: str,
httpd.registration = False httpd.registration = False
httpd.enable_shared_inbox = enable_shared_inbox httpd.enable_shared_inbox = enable_shared_inbox
httpd.outboxThread = {} httpd.outboxThread = {}
httpd.outboxThreadIndex = {} httpd.outbox_thread_index = {}
httpd.newPostThread = {} httpd.newPostThread = {}
httpd.project_version = project_version httpd.project_version = project_version
httpd.secure_mode = secure_mode httpd.secure_mode = secure_mode