getVersion safely gets the version with proper locking
()
| 283 | |
| 284 | // getVersion safely gets the version with proper locking |
| 285 | func (tc *Client) getVersion() string { |
| 286 | tc.mu.RLock() |
| 287 | defer tc.mu.RUnlock() |
| 288 | return tc.version |
| 289 | } |
no outgoing calls
no test coverage detected