Skip to content

Commit

Permalink
Switch to amqtt
Browse files Browse the repository at this point in the history
  • Loading branch information
bbedward committed Apr 5, 2021
1 parent 0626961 commit 4d04a80
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions client/bpow_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
import asyncio
import math
from time import time
from hbmqtt.client import MQTTClient, ClientException, ConnectException
from hbmqtt.mqtt.constants import QOS_0, QOS_1, QOS_2
from amqtt.client import MQTTClient, ClientException, ConnectException
from amqtt.mqtt.constants import QOS_0, QOS_1, QOS_2

from logger import get_logger
from work_handler import WorkHandler
Expand Down
2 changes: 1 addition & 1 deletion client/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
hbmqtt
amqtt
aiohttp
requests

4 changes: 2 additions & 2 deletions server/bpow/mqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
import json
import logging
from bpow.redis_db import BpowRedis
from hbmqtt.client import MQTTClient, ClientException, ConnectException
from hbmqtt.mqtt.constants import QOS_0, QOS_1, QOS_2
from amqtt.client import MQTTClient, ClientException, ConnectException
from amqtt.mqtt.constants import QOS_0, QOS_1, QOS_2

class BpowMQTT(object):

Expand Down
2 changes: 1 addition & 1 deletion server/bpow_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from collections import defaultdict
from asyncio_throttle import Throttler
from aiohttp import web, WSMsgType
from hbmqtt.mqtt.constants import QOS_0, QOS_1, QOS_2
from amqtt.mqtt.constants import QOS_0, QOS_1, QOS_2
from random import randint

asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
Expand Down
2 changes: 1 addition & 1 deletion server/kubernetes/bpow/payment_cron.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ spec:
- name: boompow
image: replaceme
command: ["/bin/bash", "-c"]
args: ["python payment_processor.py --node http://pippin-banano.pippin:11338 --wallet $(WALLET_ID) --dry_run"]
args: ["python payment_processor.py --node http://pippin-banano.pippin:11338 --wallet $(WALLET_ID)"]
env:
- name: REDIS_HOST
value: redis-0.redis
Expand Down
2 changes: 1 addition & 1 deletion server/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ujson
uvloop
aiohttp
aioredis
hbmqtt
amqtt
websockets
requests
asyncio-throttle
Expand Down

2 comments on commit 4d04a80

@yhca
Copy link

@yhca yhca commented on 4d04a80 Apr 8, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

says amqtt is missing. how? No module name amqtt

@bbedward
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

says amqtt is missing. how? No module name amqtt

You need to install it

Please sign in to comment.