Skip to content

Commit

Permalink
Merge pull request #11933 from needkane/PR
Browse files Browse the repository at this point in the history
etcdserver: Missing the cfg.Logger causes panic
  • Loading branch information
gyuho authored May 22, 2020
2 parents a4ada8c + c8ae694 commit 4c9571d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion etcdserver/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ func NewServer(cfg ServerConfig) (srv *EtcdServer, err error) {
}
serverID.With(prometheus.Labels{"server_id": id.String()}).Set(1)

srv.applyV2 = &applierV2store{store: srv.v2store, cluster: srv.cluster}
srv.applyV2 = NewApplierV2(cfg.Logger, srv.v2store, srv.cluster)

srv.be = be
minTTL := time.Duration((3*cfg.ElectionTicks)/2) * heartbeat
Expand Down

0 comments on commit 4c9571d

Please sign in to comment.