(reg *protocol.RegisterResult)
| 261 | } |
| 262 | |
| 263 | func (c *Client) updateAuth(reg *protocol.RegisterResult) { |
| 264 | c.authMu.Lock() |
| 265 | defer c.authMu.Unlock() |
| 266 | |
| 267 | if c.Auth == nil { |
| 268 | return |
| 269 | } |
| 270 | |
| 271 | if c.Auth.Type == "kiteKey" && reg.KiteKey != "" { |
| 272 | c.Auth.Key = reg.KiteKey |
| 273 | } |
| 274 | } |
| 275 | |
| 276 | func (c *Client) setContext() { |
| 277 | c.ctxMu.Lock() |
nothing calls this directly
no outgoing calls
no test coverage detected