stores memAdapterHolder SetMemoryAdapter wires the live adapter. Called from the top-level cli package after the memory store is initialized. Pass nil to clear it.
(a MemoryAdapter)
| 69 | // SetMemoryAdapter wires the live adapter. Called from the top-level cli |
| 70 | // package after the memory store is initialized. Pass nil to clear it. |
| 71 | func SetMemoryAdapter(a MemoryAdapter) { |
| 72 | memoryAdapterAtom.Store(memAdapterHolder{a: a}) |
| 73 | } |
| 74 | |
| 75 | // currentMemoryAdapter returns the wired adapter or nil. |
| 76 | func currentMemoryAdapter() MemoryAdapter { |
no outgoing calls