mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcdserver: add missing lg assignment.
This commit is contained in:
parent
fde617d2dc
commit
b2e0e760a0
@ -44,7 +44,7 @@ type v2v3Server struct {
|
||||
}
|
||||
|
||||
func NewServer(lg *zap.Logger, c *clientv3.Client, pfx string) etcdserver.ServerPeer {
|
||||
return &v2v3Server{c: c, store: newStore(c, pfx)}
|
||||
return &v2v3Server{lg: lg, c: c, store: newStore(c, pfx)}
|
||||
}
|
||||
|
||||
func (s *v2v3Server) ClientCertAuthEnabled() bool { return false }
|
||||
|
@ -38,7 +38,7 @@ type ApplierV2 interface {
|
||||
}
|
||||
|
||||
func NewApplierV2(lg *zap.Logger, s v2store.Store, c *membership.RaftCluster) ApplierV2 {
|
||||
return &applierV2store{store: s, cluster: c}
|
||||
return &applierV2store{lg: lg, store: s, cluster: c}
|
||||
}
|
||||
|
||||
type applierV2store struct {
|
||||
|
Loading…
x
Reference in New Issue
Block a user