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

Method WaitTokenRenew

kontrol/helper_test.go:171–182  ·  view source on GitHub ↗
(timeout time.Duration)

Source from the content-addressed store, hash-verified

169}
170
171func (hk *HelloKite) WaitTokenRenew(timeout time.Duration) error {
172 if !hk.Token {
173 return errors.New("kite is not authenticated with token")
174 }
175
176 select {
177 case <-hk.renew:
178 return nil
179 case <-time.After(timeout):
180 return fmt.Errorf("waiting for token to renew timed out after %s", timeout)
181 }
182}
183
184func (hk *HelloKite) Hello(remote *HelloKite) (string, error) {
185 return hk.hello(remote, false)

Callers 1

TestUpdateKeysFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected