move pulsar send to telegram.go

This commit is contained in:
w1ndyb0y
2021-02-01 17:13:54 +08:00
parent 9ec63dd8b8
commit fe1a8169e6
2 changed files with 7 additions and 6 deletions
-6
View File
@@ -70,12 +70,6 @@ func InsertTelegram(teleString string) {
db := getDb()
defer db.Close()
var insertSQL string
if Pulsar {
err := PulsarSend(teleString)
if err != nil {
Log.Error("error in send to pulsar", zap.Error(err))
}
}
if ClientReady && WriteToClient(teleString) == nil {
insertSQL = InsertOld
} else {