IsExpired will returned the expired state of the currently cached provider if there is one. If there is no current provider, true will be returned.
()
| 98 | // IsExpired will returned the expired state of the currently cached provider |
| 99 | // if there is one. If there is no current provider, true will be returned. |
| 100 | func (c *Chain) IsExpired() bool { |
| 101 | if c.curr != nil { |
| 102 | return c.curr.IsExpired() |
| 103 | } |
| 104 | |
| 105 | return true |
| 106 | } |