WithHeartbeatPeriod sets the heartbeat period for the lifecycler config.
(period time.Duration)
| 38 | |
| 39 | // WithHeartbeatPeriod sets the heartbeat period for the lifecycler config. |
| 40 | func WithHeartbeatPeriod(period time.Duration) TestLifecyclerConfigOption { |
| 41 | return func(cfg *LifecyclerConfig) { |
| 42 | cfg.HeartbeatPeriod = period |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | // WithJoinAfter sets the join after period for the lifecycler config. |
| 47 | func WithJoinAfter(period time.Duration) TestLifecyclerConfigOption { |
no outgoing calls
no test coverage detected