func (etcd *ETCDClusterRunner) RetryableAdapter(workPoolSize int, clientSSL *SSLConfig) storeadapter.StoreAdapter { adapter := storeadapter.NewRetryable( etcd.newAdapter(clientSSL), clock.NewClock(), storeadapter.ExponentialRetryPolicy{}, ) adapter.Connect() return adapter }
func (etcd *ETCDClusterRunner) RetryableAdapter(workPoolSize int) storeadapter.StoreAdapter { pool, err := workpool.NewWorkPool(workPoolSize) Expect(err).NotTo(HaveOccurred()) adapter := storeadapter.NewRetryable( etcdstoreadapter.NewETCDStoreAdapter(etcd.NodeURLS(), pool), clock.NewClock(), storeadapter.ExponentialRetryPolicy{}, ) adapter.Connect() return adapter }