Skip to content

Commit

Permalink
Reversed publish change in redis
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Mar 8, 2019
1 parent 30d9089 commit f96b047
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/appier/bus.py
Expand Up @@ -141,9 +141,7 @@ def trigger(self, name, *args, **kwargs):
kwargs = kwargs
)
)
publisher = lambda: self._redis.publish(channel, data)
if self._delay: self.owner.delay(publisher)
else: publisher()
self._redis.publish(channel, data)

def _load(self, *args, **kwargs):
Bus._load(self, *args, **kwargs)
Expand Down

0 comments on commit f96b047

Please sign in to comment.