(connID string)
| 148 | } |
| 149 | |
| 150 | func (st *StreamTracker) OpenStream(connID string) { |
| 151 | st.mu.RLock() |
| 152 | conn, ok := st.connMap[connID] |
| 153 | st.mu.RUnlock() |
| 154 | if !ok { |
| 155 | conn = st.createOrGetConnEntry(connID) |
| 156 | } |
| 157 | conn.Inc() |
| 158 | } |
| 159 | |
| 160 | func (st *StreamTracker) CloseStream(connID string) { |
| 161 | st.mu.RLock() |