Skip to content

Commit

Permalink
Update etcd_util.go
Browse files Browse the repository at this point in the history
go.etcd.io/etcd/server/v3 package version을 upgrade함에 따라 제공되지 않는 function 오류
  • Loading branch information
ian-lss authored Aug 7, 2024
1 parent 72a1754 commit fbf601b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/util/etcd/etcd_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ func StartTestEmbedEtcdServer() (*embed.Etcd, string, error) {
config.Dir = dir
config.LogLevel = "warn"
config.LogOutputs = []string{"default"}
/*
u, err := url.Parse("http://localhost:0")
if err != nil {
return nil, "", err
Expand All @@ -241,7 +242,7 @@ func StartTestEmbedEtcdServer() (*embed.Etcd, string, error) {
return nil, "", err
}
config.LPUrls = []url.URL{*u}

*/
server, err := embed.StartEtcd(config)
return server, dir, err
}
Expand Down

0 comments on commit fbf601b

Please sign in to comment.