Len returns the number of chat IDs that have tracked paths.
()
| 105 | |
| 106 | // Len returns the number of chat IDs that have tracked paths. |
| 107 | func (ps *PathStore) Len() int { |
| 108 | ps.mu.RLock() |
| 109 | defer ps.mu.RUnlock() |
| 110 | return len(ps.chatPaths) |
| 111 | } |
| 112 | |
| 113 | // Subscribe returns a channel that receives a signal whenever |
| 114 | // paths change for chatID, along with an unsubscribe function |
no outgoing calls