@@ -50,7 +50,7 @@ func (s *listenerDiscoveryService) increVersion() uint64 {
50
50
func (s * listenerDiscoveryService ) httpConnectionManager (config LDSConfig ) (* httpconnmgrv3.HttpConnectionManager , error ) {
51
51
httpFilters , err := s .connHttpFilters ()
52
52
if err != nil {
53
- return nil , err
53
+ return nil , err
54
54
}
55
55
return & httpconnmgrv3.HttpConnectionManager {
56
56
CodecType : httpconnmgrv3 .HttpConnectionManager_AUTO ,
@@ -87,20 +87,20 @@ func (s *listenerDiscoveryService) routeSpecifier() *httpconnmgrv3.HttpConnectio
87
87
}
88
88
89
89
func (s * listenerDiscoveryService ) connHttpFilters () ([]* httpconnmgrv3.HttpFilter , error ) {
90
- // https://www.envoyproxy.io/docs/envoy/v1.15.0/api-v3/extensions/filters/network/http_connection_manager/v3/http_connection_manager.proto#envoy-v3-api-msg-extensions-filters-network-http-connection-manager-v3-httpfilter
91
- conf , err := ptypes .MarshalAny (& routerv3.Router {})
92
- if err != nil {
93
- return nil , err
94
- }
95
- return []* httpconnmgrv3.HttpFilter {
96
- // declare as name as "http.router". name is used as a fallback
97
- & httpconnmgrv3.HttpFilter {
98
- Name : wellknownv3 .Router ,
99
- ConfigType : & httpconnmgrv3.HttpFilter_TypedConfig {
100
- TypedConfig : conf ,
101
- },
102
- },
103
- }, nil
90
+ // https://www.envoyproxy.io/docs/envoy/v1.15.0/api-v3/extensions/filters/network/http_connection_manager/v3/http_connection_manager.proto#envoy-v3-api-msg-extensions-filters-network-http-connection-manager-v3-httpfilter
91
+ conf , err := ptypes .MarshalAny (& routerv3.Router {})
92
+ if err != nil {
93
+ return nil , err
94
+ }
95
+ return []* httpconnmgrv3.HttpFilter {
96
+ // declare as name as "http.router". name is used as a fallback
97
+ & httpconnmgrv3.HttpFilter {
98
+ Name : wellknownv3 .Router ,
99
+ ConfigType : & httpconnmgrv3.HttpFilter_TypedConfig {
100
+ TypedConfig : conf ,
101
+ },
102
+ },
103
+ }, nil
104
104
}
105
105
106
106
func (s * listenerDiscoveryService ) connHttpAccesslog (alsConfig * any.Any ) []* accesslogv3.AccessLog {
0 commit comments