()
| 191 | } |
| 192 | |
| 193 | func (c *Channel) getParentID() int64 { |
| 194 | if c.Parent == nil { |
| 195 | return -1 |
| 196 | } |
| 197 | return c.Parent.ID |
| 198 | } |
| 199 | |
| 200 | // deleteSelfFromTree tries to delete the channel from the channelz entry relation tree, which means |
| 201 | // deleting the channel reference from its parent's child list. |