Skip to content

Commit

Permalink
Move bridge state to mautrix.util
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Jul 14, 2021
1 parent 656904f commit e2ce035
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mautrix/bridge/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
from .bridge import Bridge
from .notification_disabler import NotificationDisabler
from .async_getter_lock import async_getter_lock
from .state import BridgeState
from mautrix.util.bridge_state import BridgeState
2 changes: 1 addition & 1 deletion mautrix/bridge/e2ee.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
Database = None

if TYPE_CHECKING:
from mautrix.bridge import Bridge
from mautrix.util.bridge_state import Bridge


class EncryptionManager:
Expand Down
2 changes: 1 addition & 1 deletion mautrix/bridge/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
from mautrix.errors import MNotFound
from mautrix.util.logging import TraceLogger
from mautrix.util.opt_prometheus import Gauge
from mautrix.util.bridge_state import BridgeState

from .portal import BasePortal
from .puppet import BasePuppet
from .state import BridgeState

if TYPE_CHECKING:
from .bridge import Bridge
Expand Down
2 changes: 1 addition & 1 deletion mautrix/util/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__all__ = ["formatter", "logging", "config", "signed_token", "simple_template", "manhole",
"markdown", "simple_lock", "file_store", "program", "async_db", "db", "opt_prometheus",
"color_log", "magic"]
"color_log", "magic", "bridge_state"]
File renamed without changes.

0 comments on commit e2ce035

Please sign in to comment.