Remove unnecessary newline
This commit is contained in:
parent
9aed6bf218
commit
ef746d73ec
4
main.go
4
main.go
|
@ -99,8 +99,8 @@ func main() {
|
||||||
tgSender := TgSender{bot}
|
tgSender := TgSender{bot}
|
||||||
go tgSenderWorker(tgEvents, tgSender, &wg, sleeper, log.New(os.Stderr, "TgSender", log.Lmicroseconds))
|
go tgSenderWorker(tgEvents, tgSender, &wg, sleeper, log.New(os.Stderr, "TgSender", log.Lmicroseconds))
|
||||||
for e := range s.Events {
|
for e := range s.Events {
|
||||||
logger.Println("Received change from SATEL: ", e)
|
logger.Print("Received change from SATEL: ", e)
|
||||||
sendTgMessage(tgEvents, fmt.Sprintln("Change from SATEL: ", "type", e.Type, "index", e.Index, "value", e.Value), chatIds)
|
sendTgMessage(tgEvents, fmt.Sprint("Change from SATEL: type:", e.Type, ", index:", e.Index, ", value:", e.Value), chatIds)
|
||||||
}
|
}
|
||||||
|
|
||||||
close(tgEvents)
|
close(tgEvents)
|
||||||
|
|
Loading…
Reference in New Issue