etcdserver: add missing lg assignment.

This commit is contained in:
caoming 2019-01-05 09:24:48 +08:00
parent fde617d2dc
commit b2e0e760a0
2 changed files with 2 additions and 2 deletions

View File

@ -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 }

View File

@ -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 {