()
| 145 | } |
| 146 | |
| 147 | func (m *MultiClient) getPrimaryClient() (int, kvclient) { |
| 148 | v := m.primaryID.Load() |
| 149 | return int(v), m.clients[v] |
| 150 | } |
| 151 | |
| 152 | // returns true, if primary client has changed |
| 153 | func (m *MultiClient) setNewPrimaryClient(store string) (bool, error) { |
no test coverage detected