From 1f62c9f4e4013565ca64fdf5fd27ead2551e5028 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Thu, 15 Aug 2019 14:49:45 +0200 Subject: [PATCH] Remove debug --- core/activitypub.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/core/activitypub.py b/core/activitypub.py index 221dc69..196711c 100644 --- a/core/activitypub.py +++ b/core/activitypub.py @@ -2,7 +2,6 @@ import binascii import hashlib import logging import os -import time from datetime import datetime from datetime import timezone from typing import Any @@ -164,7 +163,6 @@ def post_to_inbox(activity: ap.BaseActivity) -> None: return save(Box.INBOX, activity) - time.sleep(1) logger.info(f"spawning tasks for {activity!r}") if not activity.has_type([ap.ActivityType.DELETE, ap.ActivityType.UPDATE]): Tasks.cache_actor(activity.id) @@ -190,7 +188,6 @@ def post_to_outbox(activity: ap.BaseActivity) -> str: activity.reset_object_cache() save(Box.OUTBOX, activity) - time.sleep(5) Tasks.cache_actor(activity.id) Tasks.finish_post_to_outbox(activity.id) return activity.id