Browse Source

Merge pull request #10371 from johncming/no-assign

etcdserver: add missing lg assignment.
Gyuho Lee 7 years ago
parent
commit
f0aeb705ce
2 changed files with 2 additions and 2 deletions
  1. 1 1
      etcdserver/api/v2v3/server.go
  2. 1 1
      etcdserver/apply_v2.go

+ 1 - 1
etcdserver/api/v2v3/server.go

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

+ 1 - 1
etcdserver/apply_v2.go

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