···144144 return nil
145145 }
146146 delete(m.uriMap, uri)
147147- cm.cancel()
147147+ // this case is for if a malformed channel record is ingested which
148148+ // doesn't create a channel, but it still shows up in uriMap. probs
149149+ // shouldn't be in uriMap but idk
150150+ if cm != nil {
151151+ cm.cancel()
152152+ }
148153 return nil
149154}
150155