(inbound Inbound)
| 19 | } |
| 20 | |
| 21 | func (s *MemoryStore) UpsertInbound(inbound Inbound) (Inbound, error) { |
| 22 | s.mu.Lock() |
| 23 | defer s.mu.Unlock() |
| 24 | s.inbounds[inbound.ID] = inbound |
| 25 | return inbound, nil |
| 26 | } |
| 27 | |
| 28 | func (s *MemoryStore) GetInbound(id string) (Inbound, error) { |
| 29 | s.mu.RLock() |
no outgoing calls