mirror of
https://github.com/zulip/zulip.git
synced 2025-11-20 06:28:23 +00:00
refactor: Remove global argument.current_realm.
This commit is contained in:
@@ -1,9 +1,5 @@
|
||||
from typing import Any, Dict, Optional
|
||||
|
||||
from zerver.models import Message, Realm
|
||||
|
||||
current_realm = None # type: Optional[Realm]
|
||||
|
||||
# We avoid doing DB queries in our markdown thread to avoid the overhead of
|
||||
# opening a new DB connection. These connections tend to live longer than the
|
||||
# threads themselves, as well.
|
||||
|
||||
Reference in New Issue
Block a user