mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 14:34:47 -04:00
Remove the psutil dependency (#6318)
* remove psutil and replace with resource
This commit is contained in:
parent
cc6243b4c0
commit
4e1c7b79fa
5 changed files with 146 additions and 83 deletions
|
@ -221,6 +221,7 @@ class HomeServer(object):
|
|||
self.hostname = hostname
|
||||
self._building = {}
|
||||
self._listening_services = []
|
||||
self.start_time = None
|
||||
|
||||
self.clock = Clock(reactor)
|
||||
self.distributor = Distributor()
|
||||
|
@ -240,6 +241,7 @@ class HomeServer(object):
|
|||
datastore = self.DATASTORE_CLASS(conn, self)
|
||||
self.datastores = DataStores(datastore, conn, self)
|
||||
conn.commit()
|
||||
self.start_time = int(self.get_clock().time())
|
||||
logger.info("Finished setting up.")
|
||||
|
||||
def setup_master(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue