refactor: Remove global argument.current_realm.

This commit is contained in:
Steve Howell
2018-11-07 14:48:08 +00:00
committed by Tim Abbott
parent e1113c7011
commit fa6f642c9c
3 changed files with 17 additions and 18 deletions

View File

@@ -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.