black reformatting.
This commit is contained in:
parent
b0a94124d2
commit
7b3c8d2ba8
3 changed files with 31 additions and 39 deletions
|
|
@ -2283,10 +2283,7 @@ class APGateway:
|
|||
log.warning(f"ignoring empty message: {mess_data}")
|
||||
return mess_data
|
||||
|
||||
mb_data = MbData(
|
||||
content = message,
|
||||
service = None
|
||||
)
|
||||
mb_data = MbData(content=message, service=None)
|
||||
if language:
|
||||
mb_data.language = language
|
||||
origin_id = mess_data["extra"].get("origin_id")
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@ class EmailGWPubsubResource(pubsub.PubSubResource):
|
|||
return defer.ensureDeferred(self.get_nodes(requestor, service, nodeIdentifier))
|
||||
|
||||
async def get_nodes(
|
||||
self, requestor: jid.JID, service: jid.JID, node_id: str|None
|
||||
self, requestor: jid.JID, service: jid.JID, node_id: str | None
|
||||
) -> list[str]:
|
||||
if node_id:
|
||||
# we only return result for requests without node.
|
||||
|
|
|
|||
|
|
@ -590,7 +590,9 @@ class PubsubCache:
|
|||
) -> Tuple[bool, Optional[Tuple[List[dict], dict]]]:
|
||||
# Check if cache is disabled by configuration (checking at runtime to handle
|
||||
# dynamic config changes)
|
||||
from pudb import set_trace; set_trace()
|
||||
from pudb import set_trace
|
||||
|
||||
set_trace()
|
||||
if G.config.common.pubsub_cache_strategy == "no_cache":
|
||||
log.debug("cache disabled in settings")
|
||||
return True, None
|
||||
|
|
|
|||
Loading…
Reference in a new issue