Skip to content

Commit

Permalink
filter single instance
Browse files Browse the repository at this point in the history
  • Loading branch information
wangxiaowei14227 committed Nov 16, 2021
1 parent c55001b commit f4ff482
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions filter/generic/service_filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import (

var (
serviceGenericOnce sync.Once
serviceGeneric *genericFilter
serviceGeneric *genericServiceFilter
)

func init() {
Expand All @@ -53,7 +53,7 @@ type genericServiceFilter struct{}
func newGenericServiceFilter() filter.Filter {
if serviceGeneric == nil {
serviceGenericOnce.Do(func() {
serviceGeneric = &genericFilter{}
serviceGeneric = &genericServiceFilter{}
})
}
return serviceGeneric
Expand Down

0 comments on commit f4ff482

Please sign in to comment.