Merge pull request #10371 from johncming/no-assign

etcdserver: add missing lg assignment.
This commit is contained in:
Gyuho Lee
2019-01-04 19:04:57 -08:00
committed by GitHub
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 {