(userID string, client *resty.Client)
| 49 | } |
| 50 | |
| 51 | func (cm *ClientManager) SetHTTPClient(userID string, client *resty.Client) { |
| 52 | cm.Lock() |
| 53 | defer cm.Unlock() |
| 54 | cm.httpClients[userID] = client |
| 55 | } |
| 56 | |
| 57 | func (cm *ClientManager) GetHTTPClient(userID string) *resty.Client { |
| 58 | cm.RLock() |