Skip to content

Commit

Permalink
dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
rboyer committed Mar 9, 2021
1 parent 83b5cc4 commit 94be7ef
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions agent/xds/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -408,14 +408,6 @@ func (t *xDSType) Recv(req *envoy_discovery_v3.DiscoveryRequest, node *envoy_con
}
}

func (t *xDSType) Generate(cfgSnap *proxycfg.ConfigSnapshot) ([]proto.Message, error) {
cInfo := connectionInfo{
Token: tokenFromContext(t.stream.Context()),
ProxyFeatures: t.proxyFeatures,
}
return t.resources(cInfo, cfgSnap)
}

func (t *xDSType) SendIfNew(cfgSnap *proxycfg.ConfigSnapshot, version uint64, nonce *uint64) error {
if t.req == nil {
return nil
Expand All @@ -425,7 +417,11 @@ func (t *xDSType) SendIfNew(cfgSnap *proxycfg.ConfigSnapshot, version uint64, no
return nil
}

resources, err := t.Generate(cfgSnap)
cInfo := connectionInfo{
Token: tokenFromContext(t.stream.Context()),
ProxyFeatures: t.proxyFeatures,
}
resources, err := t.resources(cInfo, cfgSnap)
if err != nil {
return err
}
Expand Down

0 comments on commit 94be7ef

Please sign in to comment.