Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
sfan5 committed Oct 13, 2024
1 parent b87139b commit 69c5ad7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions server.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,9 @@ def announce():
server["pop_v"] = server["total_clients"] / server["updates"]

tmp = getErrorPK(server)
old_err = errorTracker(tmp)
old_err = errorTracker.get(tmp)
if old_err:
app.logger.info("pk=%r err=%r", tmp, old_err)
app.logger.warn("pk=%r err=%r", tmp, old_err)

finishRequestAsync(server)

Expand Down Expand Up @@ -451,7 +451,7 @@ def asyncFinishThread(server):
err = "Server %s port %d did not respond to ping (tried %s)" % \
(server["address"], server["port"], info[0][4][0])
app.logger.warning(err)
errorTracker.push(getErrorPK(server), err)
errorTracker.put(getErrorPK(server), err)
return

del server["action"]
Expand Down Expand Up @@ -594,7 +594,7 @@ def get(self, k):
with self.lock:
e = self.table.get(k)
if e and e[0] >= time.monotonic():
return e
return e[1]

def cleanup(self):
with self.lock:
Expand Down

0 comments on commit 69c5ad7

Please sign in to comment.