Skip to content

Commit be4ea54

Browse files
committed
Support new telegram-bot
1 parent b724ae1 commit be4ea54

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

log/logger.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,19 +146,19 @@ func SetAMQP(_ch *amqp.Channel, name string) {
146146
}
147147
func amqpSend(v []interface{}) {
148148
alert := fmt.Sprint(v...)
149-
send(alert, "")
149+
send(alert)
150150
}
151151
func amqpSendf(msg string, args []interface{}) {
152152
alert := fmt.Sprintf(msg, args...)
153-
send(alert, "")
153+
send(alert)
154154
}
155-
func send(message string, routingKey string) {
155+
func send(message string) {
156156
if ch == nil {
157157
return
158158
}
159159
err := ch.Publish(
160160
"TelegramBot", // exchange
161-
routingKey, // routing key
161+
netName, // routing key
162162
false, // mandatory
163163
false, // immediate
164164
amqp.Publishing{

0 commit comments

Comments
 (0)