(ctx context.Context)
| 1133 | } |
| 1134 | |
| 1135 | func (c *clusterStateHolder) ReloadOrGet(ctx context.Context) (*clusterState, error) { |
| 1136 | state, err := c.Reload(ctx) |
| 1137 | if err == nil { |
| 1138 | return state, nil |
| 1139 | } |
| 1140 | return c.Get(ctx) |
| 1141 | } |
| 1142 | |
| 1143 | //------------------------------------------------------------------------------ |
| 1144 |
no test coverage detected