Use clearer variable names

This commit is contained in:
Elara 2021-11-24 11:54:16 -08:00
parent 62817e4fbe
commit 9bd78bccce

View File

@ -27,11 +27,11 @@ func initCallNotifs(dev *infinitime.Device) error {
return err
}
c := make(chan *dbus.Message, 10)
monitorConn.Eavesdrop(c)
callCh := make(chan *dbus.Message, 10)
monitorConn.Eavesdrop(callCh)
go func() {
for x := range c {
callPath := x.Body[0].(dbus.ObjectPath)
for event := range callCh {
callPath := event.Body[0].(dbus.ObjectPath)
callObj := conn.Object("org.freedesktop.ModemManager1", callPath)
phoneNum, err := getPhoneNum(conn, callObj)