MCPcopy Create free account
hub / github.com/Syncplay/syncplay / _runClientSnapshot

Method _runClientSnapshot

syncplay/server.py:322–330  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

320 self._clientSnapshotTimer.start(constants.SERVER_STATS_SNAPSHOT_INTERVAL)
321
322 def _runClientSnapshot(self):
323 try:
324 snapshotTime = int(time.time())
325 rooms = self._roomManagerHandle.exportRooms()
326 for room in rooms.values():
327 for watcher in room.getWatchers():
328 self._dbHandle.addVersionLog(snapshotTime, watcher.getVersion())
329 except:
330 pass
331
332class RoomsRecorder(StatsRecorder):
333 def __init__(self, dbHandle, roomManager):

Callers

nothing calls this directly

Calls 4

exportRoomsMethod · 0.80
getWatchersMethod · 0.80
addVersionLogMethod · 0.80
getVersionMethod · 0.45

Tested by

no test coverage detected