in internal/conn/storage/credcache.go [104:125]
func (c *credCache) refresher() {
const (
nextRefresh = 23 * time.Hour
)
boff, err := exponential.New()
if err != nil {
// We aren't passing any options, this should never happen and
// we should panic if it does.
panic(err)
}
ctx := context.Background()
for {
next := time.Now().Add(nextRefresh)
// This will block until the next refresh time.
// An error will only be returned if the cache is closed, so it can be ignored.
if err := c.refresh(ctx, boff, next); err != nil {
return
}
}
}