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.
|
||||
psConfig := server.PeerServerConfig{
|
||||
Name: info.Name,
|
||||
Path: config.DataDir,
|
||||
Scheme: peerTLSConfig.Scheme,
|
||||
URL: info.RaftURL,
|
||||
SnapshotCount: config.SnapshotCount,
|
||||
|
@ -26,7 +26,6 @@ const ThresholdMonitorTimeout = 5 * time.Second
|
||||
|
||||
type PeerServerConfig struct {
|
||||
Name string
|
||||
Path string
|
||||
Scheme string
|
||||
URL string
|
||||
SnapshotCount int
|
||||
|
@ -34,7 +34,6 @@ func RunServer(f func(*server.Server)) {
|
||||
|
||||
psConfig := server.PeerServerConfig{
|
||||
Name: testName,
|
||||
Path: path,
|
||||
URL: "http://"+testRaftURL,
|
||||
Scheme: "http",
|
||||
SnapshotCount: testSnapshotCount,
|
||||
|
Loading…
x
Reference in New Issue
Block a user