From 7b08ff9c8871ef731641eacb133a8c1c7eaf35cc Mon Sep 17 00:00:00 2001 From: Jeremy Cline Date: Tue, 31 Oct 2017 20:36:47 +0000 Subject: [PATCH] Remove the apparently unused custom dogpile lock Signed-off-by: Jeremy Cline --- roles/notifs/backend/templates/fmn.consumer.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/notifs/backend/templates/fmn.consumer.py b/roles/notifs/backend/templates/fmn.consumer.py index 64862e521d..3713fbb55c 100644 --- a/roles/notifs/backend/templates/fmn.consumer.py +++ b/roles/notifs/backend/templates/fmn.consumer.py @@ -8,6 +8,8 @@ ircnick = "fedora-notif" base = "https://apps.%s/notifications/" % domain +{% if env != 'staging' %} + from dogpile.core.readwrite_lock import ReadWriteMutex from dogpile.cache.backends.file import AbstractFileLock @@ -35,6 +37,7 @@ class MutexLock(AbstractFileLock): @classmethod def __json__(cls): return repr(cls) +{% endif %} config = {