From e6f2174ad4b3d503411eb0f26b9acf4579d20d56 Mon Sep 17 00:00:00 2001 From: Izalia Mae Date: Mon, 15 Jan 2024 23:39:50 -0500 Subject: [PATCH] don't use lazy import for aputils --- relay/database.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/relay/database.py b/relay/database.py index d6c1acc..135270e 100644 --- a/relay/database.py +++ b/relay/database.py @@ -1,9 +1,9 @@ from __future__ import annotations -import aputils import json import typing +from aputils.signer import Signer from urllib.parse import urlparse from . import logger as logging @@ -85,11 +85,11 @@ class RelayDatabase(dict): if not self['private-key']: logging.info('No actor keys present, generating 4096-bit RSA keypair.') - self.signer = aputils.Signer.new(self.config.keyid, size=4096) + self.signer = Signer.new(self.config.keyid, size=4096) self['private-key'] = self.signer.export() else: - self.signer = aputils.Signer(self['private-key'], self.config.keyid) + self.signer = Signer(self['private-key'], self.config.keyid) self.save() return not new_db