MCPcopy Create free account
hub / github.com/koding/kite / updateAuth

Method updateAuth

client.go:263–274  ·  view source on GitHub ↗
(reg *protocol.RegisterResult)

Source from the content-addressed store, hash-verified

261}
262
263func (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
276func (c *Client) setContext() {
277 c.ctxMu.Lock()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected