Skip to content

Commit f69d759

Browse files
committed
tidy
1 parent 7e053cb commit f69d759

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

lds.go

+15-15
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func (s *listenerDiscoveryService) increVersion() uint64 {
5050
func (s *listenerDiscoveryService) httpConnectionManager(config LDSConfig) (*httpconnmgrv3.HttpConnectionManager, error) {
5151
httpFilters, err := s.connHttpFilters()
5252
if err != nil {
53-
return nil, err
53+
return nil, err
5454
}
5555
return &httpconnmgrv3.HttpConnectionManager{
5656
CodecType: httpconnmgrv3.HttpConnectionManager_AUTO,
@@ -87,20 +87,20 @@ func (s *listenerDiscoveryService) routeSpecifier() *httpconnmgrv3.HttpConnectio
8787
}
8888

8989
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
104104
}
105105

106106
func (s *listenerDiscoveryService) connHttpAccesslog(alsConfig *any.Any) []*accesslogv3.AccessLog {

0 commit comments

Comments
 (0)