()
| 157 | } |
| 158 | |
| 159 | func newTunnelStore() *tunnelStore { |
| 160 | return &tunnelStore{ |
| 161 | bySrc: make(map[uuid.UUID]map[uuid.UUID]struct{}), |
| 162 | byDst: make(map[uuid.UUID]map[uuid.UUID]struct{}), |
| 163 | } |
| 164 | } |
| 165 | |
| 166 | func (s *tunnelStore) add(src, dst uuid.UUID) { |
| 167 | srcM, ok := s.bySrc[src] |
no outgoing calls