Skip to content

Commit 1345766

Browse files
committed
chore: deprecate ClientTLSConfig
1 parent 412cb65 commit 1345766

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

store/store.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ var (
4949

5050
// Config contains the options for a storage client.
5151
type Config struct {
52-
ClientTLS *ClientTLSConfig
52+
ClientTLS *ClientTLSConfig // Deprecated
5353
TLS *tls.Config
5454
ConnectionTimeout time.Duration
5555
SyncPeriod time.Duration
@@ -65,6 +65,7 @@ type Config struct {
6565
// ClientTLSConfig contains data for a Client TLS configuration
6666
// in the form the etcd client wants it.
6767
// Eventually we'll adapt it for ZK and Consul.
68+
// Deprecated unused.
6869
type ClientTLSConfig struct {
6970
CertFile string
7071
KeyFile string

valkeyrie_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,10 @@ func TestListSupportedBackends(t *testing.T) {
6262
require.NoError(t, err)
6363
require.Nil(t, kv) // AddStore return nil
6464
}
65-
assert.Equal(t, test.expect, supportedBackend())
65+
66+
backends := supportedBackend()
67+
68+
assert.Equal(t, test.expect, backends)
6669
})
6770
}
6871
}

0 commit comments

Comments
 (0)