Use clearer variable names

This commit is contained in:
Elara 2021-11-24 11:54:16 -08:00
parent e24a8e9088
commit 079c733b60
1 changed files with 4 additions and 4 deletions

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)