(opts []ClusterOption)
| 30 | } |
| 31 | |
| 32 | func (co *ClusterOptions) applyOpts(opts []ClusterOption) { |
| 33 | for _, opt := range opts { |
| 34 | opt(co) |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | // WithMaxLearners sets the maximum number of learners that can exist in the cluster membership. |
| 39 | func WithMaxLearners(max int) ClusterOption { |