mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
refactor(peerserver): Remove PeerServerConfig.Path
This commit is contained in:
parent
19980a7033
commit
f158dfcd77
1
etcd.go
1
etcd.go
@ -125,7 +125,6 @@ func main() {
|
|||||||
// Create peer server.
|
// Create peer server.
|
||||||
psConfig := server.PeerServerConfig{
|
psConfig := server.PeerServerConfig{
|
||||||
Name: info.Name,
|
Name: info.Name,
|
||||||
Path: config.DataDir,
|
|
||||||
Scheme: peerTLSConfig.Scheme,
|
Scheme: peerTLSConfig.Scheme,
|
||||||
URL: info.RaftURL,
|
URL: info.RaftURL,
|
||||||
SnapshotCount: config.SnapshotCount,
|
SnapshotCount: config.SnapshotCount,
|
||||||
|
@ -26,7 +26,6 @@ const ThresholdMonitorTimeout = 5 * time.Second
|
|||||||
|
|
||||||
type PeerServerConfig struct {
|
type PeerServerConfig struct {
|
||||||
Name string
|
Name string
|
||||||
Path string
|
|
||||||
Scheme string
|
Scheme string
|
||||||
URL string
|
URL string
|
||||||
SnapshotCount int
|
SnapshotCount int
|
||||||
|
@ -34,7 +34,6 @@ func RunServer(f func(*server.Server)) {
|
|||||||
|
|
||||||
psConfig := server.PeerServerConfig{
|
psConfig := server.PeerServerConfig{
|
||||||
Name: testName,
|
Name: testName,
|
||||||
Path: path,
|
|
||||||
URL: "http://"+testRaftURL,
|
URL: "http://"+testRaftURL,
|
||||||
Scheme: "http",
|
Scheme: "http",
|
||||||
SnapshotCount: testSnapshotCount,
|
SnapshotCount: testSnapshotCount,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user