Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
a-palchikov committed Dec 9, 2020
1 parent 7511c94 commit bee37d1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/reversetunnel/srv.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ type Config struct {
// Component is a component used in logs
Component string

// Log specifies the logger
Log log.FieldLogger

// FIPS means Teleport was started in a FedRAMP/FIPS 140-2 compliant
Expand Down
10 changes: 10 additions & 0 deletions lib/services/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,11 @@ func (s *ServerV2) DeepCopy() Server {
// Merge overwrites r from src and
// is part of support for cloning Server values
// using proto.Clone.
//
// Note: this does not implement the full Merger interface,
// specifically, it assumes that r is zero value.
// See https://github.com/gogo/protobuf/blob/v1.3.1/proto/clone.go#L58-L60
//
// Implements proto.Merger
func (r *Rotation) Merge(src proto.Message) {
s, ok := src.(*Rotation)
Expand All @@ -394,6 +399,11 @@ func (r *Rotation) Merge(src proto.Message) {
// Merge overwrites r from src and
// is part of support for cloning Server values
// using proto.Clone.
//
// Note: this does not implement the full Merger interface,
// specifically, it assumes that r is zero value.
// See https://github.com/gogo/protobuf/blob/v1.3.1/proto/clone.go#L58-L60
//
// Implements proto.Merger
func (r *Metadata) Merge(src proto.Message) {
m, ok := src.(*Metadata)
Expand Down

0 comments on commit bee37d1

Please sign in to comment.