Skip to content

Commit

Permalink
fix(repos) all elastic mq repos should be based on libtrustbirdge (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
magicjohnson committed Jul 21, 2020
1 parent 0d64783 commit 3074e49
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions intergov/repos/api_inbox/elasticmq/elasticmqrepo.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from intergov.repos.base.elasticmq import elasticmqrepo
from libtrustbridge.repos.elasticmqrepo import ElasticMQRepo


class APIInboxElasticRepo(elasticmqrepo.ElasticMQRepo):
class APIInboxElasticRepo(ElasticMQRepo):
def _get_queue_name(self):
return 'api-inbox'
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
from intergov.repos.base.elasticmq import elasticmqrepo
from libtrustbridge.repos.elasticmqrepo import ElasticMQRepo

"""
This repo receives pending messages to provide
them to worker which will poll their status from the
coresponding channels.
"""

class ChannelPendingMessageElasticMQRepo(ElasticMQRepo):
"""
This repo receives pending messages to provide
them to worker which will poll their status from the
coresponding channels.
"""

class ChannelPendingMessageElasticMQRepo(elasticmqrepo.ElasticMQRepo):
def _get_queue_name(self):
return 'channel-pending-messages'
4 changes: 2 additions & 2 deletions intergov/repos/delivery_outbox/elasticmq/elasticmq_repo.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from intergov.repos.base.elasticmq import elasticmqrepo
from libtrustbridge.repos.elasticmqrepo import ElasticMQRepo


class DeliveryOutboxRepo(elasticmqrepo.ElasticMQRepo):
class DeliveryOutboxRepo(ElasticMQRepo):
def _get_queue_name(self):
return 'delivery-outbox'
10 changes: 5 additions & 5 deletions intergov/repos/message_updates/elasticmq/elasticmqrepo.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from intergov.repos.base.elasticmq import elasticmqrepo
from libtrustbridge.repos.elasticmqrepo import ElasticMQRepo

"""
This repo is used to delay message updates
"""

class MessageUpdatesElasticMQRepo(ElasticMQRepo):
"""
This repo is used to delay message updates
"""

class MessageUpdatesElasticMQRepo(elasticmqrepo.ElasticMQRepo):
def _get_queue_name(self):
return 'message-updates'

0 comments on commit 3074e49

Please sign in to comment.