SetStatus safely updates the profile's connection status.
(status ProfileConnectionStatus, err error)
| 49 | |
| 50 | // SetStatus safely updates the profile's connection status. |
| 51 | func (pc *ProfileClient) SetStatus(status ProfileConnectionStatus, err error) { |
| 52 | pc.mu.Lock() |
| 53 | defer pc.mu.Unlock() |
| 54 | pc.Status = status |
| 55 | pc.LastErr = err |
| 56 | } |
| 57 | |
| 58 | // GetStatus safely retrieves the profile's connection status. |
| 59 | func (pc *ProfileClient) GetStatus() (ProfileConnectionStatus, error) { |
no outgoing calls
no test coverage detected