code: func WithRefreshInterval(value time.Duration) coptions.Opt {
  	return func(p coptions.Params) {
  		logger.Debug("Checking refreshIntervalSetter")
  		if setter, ok := p.(refreshIntervalSetter); ok {
  			setter.SetDiscoveryRefreshInterval(value)
  		}
  	}
  }
docs: // WithRefreshInterval sets the interval in which the
  // peer cache is refreshed