We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b724ae1 commit be4ea54Copy full SHA for be4ea54
log/logger.go
@@ -146,19 +146,19 @@ func SetAMQP(_ch *amqp.Channel, name string) {
146
}
147
func amqpSend(v []interface{}) {
148
alert := fmt.Sprint(v...)
149
- send(alert, "")
+ send(alert)
150
151
func amqpSendf(msg string, args []interface{}) {
152
alert := fmt.Sprintf(msg, args...)
153
154
155
-func send(message string, routingKey string) {
+func send(message string) {
156
if ch == nil {
157
return
158
159
err := ch.Publish(
160
"TelegramBot", // exchange
161
- routingKey, // routing key
+ netName, // routing key
162
false, // mandatory
163
false, // immediate
164
amqp.Publishing{
0 commit comments