MCPcopy Create free account
hub / github.com/openclaw/gogcli / IsKeyringTimeout

Function IsKeyringTimeout

internal/secrets/timeout_keyring.go:54–60  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

52}
53
54func IsKeyringTimeout(err error) bool {
55 if err == nil {
56 return false
57 }
58
59 return errors.Is(err, errKeyringTimeout) || strings.Contains(err.Error(), errKeyringTimeout.Error())
60}
61
62func (k *timeoutKeyring) Get(key string) (keyring.Item, error) {
63 return withKeyringTimeout(k.timeout, "reading keyring item", k.hint, func() (keyring.Item, error) {

Calls 1

ErrorMethod · 0.45