WithJoinAfter sets the join after period for the lifecycler config.
(period time.Duration)
| 45 | |
| 46 | // WithJoinAfter sets the join after period for the lifecycler config. |
| 47 | func WithJoinAfter(period time.Duration) TestLifecyclerConfigOption { |
| 48 | return func(cfg *LifecyclerConfig) { |
| 49 | cfg.JoinAfter = period |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | // WithZone sets the zone for the lifecycler config. |
| 54 | func WithZone(zone string) TestLifecyclerConfigOption { |
no outgoing calls
no test coverage detected