Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
Signed-off-by: spacewander <[email protected]>
  • Loading branch information
spacewander committed Nov 12, 2024
1 parent 0d15342 commit acdeb26
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions api/pkg/filtermanager/api_impl_129.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,24 +37,16 @@ func (cb *filterManagerCallbackHandler) RefreshRouteCache() {
api.LogErrorf("RefreshRouteCache is not implemented: %s", debug.Stack())

Check warning on line 37 in api/pkg/filtermanager/api_impl_129.go

View check run for this annotation

Codecov / codecov/patch

api/pkg/filtermanager/api_impl_129.go#L36-L37

Added lines #L36 - L37 were not covered by tests
}

type filterCallbackHandlerWrapper struct {
capi.FilterCallbackHandler
}

func NewFilterCallbackHandlerWrapper(h capi.FilterCallbackHandler) capi.FilterCallbackHandler {
return &filterCallbackHandlerWrapper{FilterCallbackHandler: h}
}

func (w *filterCallbackHandlerWrapper) AddData([]byte, bool) {
func (cb *filterManagerCallbackHandler) AddData([]byte, bool) {
api.LogErrorf("AddData is not implemented: %s", debug.Stack())

Check warning on line 41 in api/pkg/filtermanager/api_impl_129.go

View check run for this annotation

Codecov / codecov/patch

api/pkg/filtermanager/api_impl_129.go#L40-L41

Added lines #L40 - L41 were not covered by tests
}

func (cb *filterManagerCallbackHandler) DecoderFilterCallbacks() api.DecoderFilterCallbacks {
return NewFilterCallbackHandlerWrapper(cb.FilterCallbackHandler)
return cb
}

func (cb *filterManagerCallbackHandler) EncoderFilterCallbacks() api.EncoderFilterCallbacks {
return NewFilterCallbackHandlerWrapper(cb.FilterCallbackHandler)
return cb
}

func (cb *filterManagerCallbackHandler) Continue(st capi.StatusType, _ bool) {
Expand Down

0 comments on commit acdeb26

Please sign in to comment.