diff options
author | terminaldweller <thabogre@gmail.com> | 2021-12-14 17:23:37 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2021-12-14 17:23:37 +0000 |
commit | 0fe5dc8515937773d019d0597555b7e1f330c1fc (patch) | |
tree | f07b88aab5f13975e327376f1e9e16f59cdf6144 | |
parent | grpc for telebot. untested. [WIP] (diff) | |
download | hived-grpc.tar.gz hived-grpc.zip |
fixed the ip and address for the grpc servergrpc
-rw-r--r-- | docker-compose-test.yaml | 2 | ||||
-rw-r--r-- | docker-compose.yaml | 2 | ||||
-rw-r--r-- | 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) } } |