aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2021-12-14 17:23:37 +0000
committerterminaldweller <thabogre@gmail.com>2021-12-14 17:23:37 +0000
commit0fe5dc8515937773d019d0597555b7e1f330c1fc (patch)
treef07b88aab5f13975e327376f1e9e16f59cdf6144
parentgrpc for telebot. untested. [WIP] (diff)
downloadhived-0fe5dc8515937773d019d0597555b7e1f330c1fc.tar.gz
hived-0fe5dc8515937773d019d0597555b7e1f330c1fc.zip
fixed the ip and address for the grpc servergrpc
-rw-r--r--docker-compose-test.yaml2
-rw-r--r--docker-compose.yaml2
-rw-r--r--hived/hived.go4
3 files changed, 4 insertions, 4 deletions
diff --git a/docker-compose-test.yaml b/docker-compose-test.yaml
index 8213acb..afee17a 100644
--- a/docker-compose-test.yaml
+++ b/docker-compose-test.yaml
@@ -30,7 +30,7 @@ services:
networks:
- telenet
ports:
- - "9009:9009"
+ - "9009:8000"
entrypoint: ["/telebot/docker-entrypoint.sh"]
cap_drop:
- ALL
diff --git a/docker-compose.yaml b/docker-compose.yaml
index ac9ef5e..90ff90d 100644
--- a/docker-compose.yaml
+++ b/docker-compose.yaml
@@ -34,7 +34,7 @@ services:
- telenet
restart: unless-stopped
ports:
- - "127.0.0.1:9009:9009"
+ - "127.0.0.1:9009:8000"
entrypoint: ["/telebot/docker-entrypoint.sh"]
cap_drop:
- ALL
diff --git a/hived/hived.go b/hived/hived.go
index b955986..d00f58d 100644
--- a/hived/hived.go
+++ b/hived/hived.go
@@ -60,7 +60,7 @@ func sendToTg(address, msg string, channelId int64) {
ctx, cancel := context.WithTimeout(context.Background(), time.Second)
defer cancel()
- r, err := c.Notify(ctx, &pb.NotificationRequest{NotificationText: address, ChannelId: channelId})
+ r, err := c.Notify(ctx, &pb.NotificationRequest{NotificationText: msg, ChannelId: channelId})
if err != nil {
log.Fatal().Err(err)
}
@@ -385,7 +385,7 @@ func alertManager() {
if err != nil {
log.Fatal().Err(err)
}
- sendToTg("telebot:9009", msgText, tokenInt)
+ sendToTg("telebot:8000", msgText, tokenInt)
}
}