setVersion safely sets the version with proper locking
(version string)
| 276 | |
| 277 | // setVersion safely sets the version with proper locking |
| 278 | func (tc *Client) setVersion(version string) { |
| 279 | tc.mu.Lock() |
| 280 | defer tc.mu.Unlock() |
| 281 | tc.version = version |
| 282 | } |
| 283 | |
| 284 | // getVersion safely gets the version with proper locking |
| 285 | func (tc *Client) getVersion() string { |
no test coverage detected