From 0fe5dc8515937773d019d0597555b7e1f330c1fc Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Tue, 14 Dec 2021 20:53:37 +0330 Subject: fixed the ip and address for the grpc server --- docker-compose-test.yaml | 2 +- docker-compose.yaml | 2 +- hived/hived.go | 4 ++-- 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) } } -- cgit v1.2.3